G
Guest
I have an AS 400 ODBC file with multiple sku's and prices with various dates
stored as YYYYMMDD
I want to select ALL sku's but only the "Last" price within any given sku
PER YEAR
Thanks in advance for any and all help
example follows:
sku date price Select
1 20071001 1.50 Yes
1 20070301 1.25 No
1 20061001 1.00 Yes
1 20050601 0.75 Yes
1 20050201 0.70 no
2 20071001 1.50 Yes
2 20070301 1.25 no
2 20061001 1.00 Yes
2 20060301 0.75 no
2 20050201 0.70 Yes
2 20050101 0.65 no
2 20040201 0.60 Yes
stored as YYYYMMDD
I want to select ALL sku's but only the "Last" price within any given sku
PER YEAR
Thanks in advance for any and all help
example follows:
sku date price Select
1 20071001 1.50 Yes
1 20070301 1.25 No
1 20061001 1.00 Yes
1 20050601 0.75 Yes
1 20050201 0.70 no
2 20071001 1.50 Yes
2 20070301 1.25 no
2 20061001 1.00 Yes
2 20060301 0.75 no
2 20050201 0.70 Yes
2 20050101 0.65 no
2 20040201 0.60 Yes