I'm trying to select records from an SQL Server 7.0 database which are after a given date and before another given date. All three dates are in the format dd-mm-yy. It should look something like this:
Select *
From Table1
Where Date(DateTarget) > Date(DateFirst) and Date (DateTarget) < Date(DateLast)
Except that Date() isn't a valid SQL function. Is there a function that does what I'm trying to do here, or do I need to make a complicated query with several uses of DatePart() to catch days, months and years individually?
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)
Select *
From Table1
Where Date(DateTarget) > Date(DateFirst) and Date (DateTarget) < Date(DateLast)
Except that Date() isn't a valid SQL function. Is there a function that does what I'm trying to do here, or do I need to make a complicated query with several uses of DatePart() to catch days, months and years individually?
"Much that I bound, I could not free. Much that I freed returned to me."
(Lee Wilson Dodd)