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

SQL Query - Items between a start date and time and a stop d & t 1

Status
Not open for further replies.

i2rjames

Programmer
Feb 22, 2006
2
IE
Example of what's required.
I want all records between the date 2006-01-01 time 10:30 to
date 2006-04-06 time 17:15.

The records have a date and a time field

How do I structure an SQL statement to get the above?

Thanks

James
 
Add the Date and the Time database field and compare them against the local tdatetime-value

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-"There is always another way to solve it, but I prefer my way.
 
Thanks Nordlund,

That works fine, thanks for the fast response.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top