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
Export Windows installed updates to text format for comparison?
Saving an Access report to a PDF (Acrobat 6.0) document with a custom file name
Business Contact Manager over VPN
Refresh subform on different tab control
Relisting at CBL and Spamhaus.org
what is the bios master password for gateway solo 5300
Windows 7.0 Public Desktop Problem
How to completely hide columns in Access 2007
SQL Injection
access 2003 package wizard