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
foxpro sql insert data with comma in text
Access 2000 Runtime
form set focus vb.net
Use range of Cells as criteria for Excel Query
How to change the location of Listbox using code
The semaphore timeout period has expired. Unable to create folder.
SQL Function
No Driver for Ricoh Aficio SP C210SF (Win 7)
How do I create a Public Folder using Exchange Online through Microsoft Online Services?
Can I sync Contacts and Calendar with my ITouch