Microsoft
Software
Hardware
Network
Question : Date Comparison in MSSQL
Hello, I'm trying to compare two dates from two inline views in my where clause.
Both of the selects in my views work correctly, these fields are dates.
I want to verify that avail.period is before the date alloc_end.alloc_end from another inlline.
Like....
Where
avail.period <= alloc_end.alloc_end AND.....
Thanks in advance, this simple issue is killing me.
Answer : Date Comparison in MSSQL
Use the BETWEEN operator.
SELECT * ...
WHERE avail.period BETWEEN date1 AND date2
Random Solutions
Access Calendar Control Help
How to use CDatabase's ExecuteSQL to find the record or row and then get the result, such as in CRecordSet
Does waiting for a web service's reponse use "clock cycles"?
Web Service to upload images
SBS 2003 Error - Windows could not start because of an error in the software. Please report this problem as : load needed DLLs for kernel.
Unable to remove buritos.exe trojan from UPS email
Use VBA Code to check if a table exists.
Displaying list data in a Microsoft Report Viewer control
Installing Exchange 2007 Managment Tools on Windows 7
Select query