Hai Everyone..
I am new to this forum & MySQL..
I hava a table like this
iss_date item_code aa bb cc
2010-06-05 abc 10 15 15
2010-06-10 cca 20 20 20
2010-06-12 abc 12 12 12
2010-06-13 abc 13 13 17
2010-06-15 cca 18 17 24
I need a query that will fetch record
for a particular date. If data for particular
date is not found, it should return previous
date's values.
for ex..
data for iss_date=2010-06-15 should return as
item_code aa bb cc
cca 18 17 24
abc 13 13 17
data for iss_date=2010-06-12 should return as
item_code aa bb cc
cca 20 20 20
abc 12 12 12
Thanks in advance