...which are the valid records on that date.
So another example, if I put date 12DEC09, I shoud get back:
5 CK, 20OCT09,31DEC09,$800
6 PEPE JEANS, 01NOV09,31DEC09,$750
I have tried GROUP BY, SORT BY LIMIT, COUNT(*) (a combination of those) and cannot get this to work !
could anyone help me ?