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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time In SQL

Status
Not open for further replies.

Silvinho

Programmer
Joined
Jul 9, 2001
Messages
58
Location
GB
using the query

SELECT *
FROM Chat
WHERE Date_Entered Between Now() And Now()-5
ORDER BY Date_Entered ASC

gives me the all the records over the last 5 days

How do you change the SQL so that instead of selecting days, you can select time, giving me all the records from say the last 5 minutes?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top