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
Reporting Services Configuration Error
Update from SQL Query
Terminal Server 2008 does not show a users printers
Suggested Reading
IIS6 FTP mget case sensitive
how to impact RPC over Https Clients if certificate get from verisign expires
How to custom NDR message in Exchange 2007 and disable NDR for internet email sender
Can't RDP to a Windows XP worktation
Capture data from listbox
CHARINDEX whole word match