Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to return from 'todays' date?

Status
Not open for further replies.

Plogu101

Programmer
Nov 5, 2004
12
GB
Just a little problem, this query is working..nearly... I just need it to return starting from the first instance of todays date, in the table? If anyone can help you'd be a lifesaver....


Code:
"SELECT * FROM Aberystwyth ORDER BY Date, Time LIMIT 20 ";

example:

"SELECT * FROM Aberystwyth (starting from todays date here?) ORDER BY Date, Time LIMIT 20 ";
 
to get descending order:
... order by date desc, time desc ...

Is this what you are looking for?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top