By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,124 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,124 IT Pros & Developers. It's quick & easy.

how to retrive latest date from mysql table

P: 57
i have a date field in a table..i want to retrieve the data with latest date...is there any query for that.....
Apr 10 '08 #1
Share this Question
Share on Google+
2 Replies


debasisdas
Expert 5K+
P: 8,127
You want to reteive the row with latest date ?
Apr 10 '08 #2

amitpatel66
Expert 100+
P: 2,367
i have a date field in a table..i want to retrieve the data with latest date...is there any query for that.....
Are you looking at something like:

Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT * FROM table_name1 WHERE date_column = (SELECT MAX(date_column) FROM table_name1);
  3.  
  4.  
Apr 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.