Hi all,
we have the following table structure and data
id user_id date food_description calories_consumed
1 112 2008-11-17 breakfast 1025
2 112 2008-11-17 lunch 4589
3 112 2008-11-17 dinner 3698
4 112 2008-11-18 morning snack 36985
6 112 2008-11-23 Lunch 215
7 112 2008-11-23 Dinner 2541
8 112 2008-11-24 Lunch 2541
9 112 2008-11-24 Dinner 142
we want to display all the records inserted last date i.e. for this example records for 2008-11-24 (2 records)
what the sql query for this, we are using mysql version 4.0.26, thanks for your help.
Regards
Sanjeev.








Bookmarks