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
copy field value from a form to a table
Problem Upgrading a Child Domain to Windows 2008 R2
event viewer log error 17055 mssqlserver backup logs
Make table Union All query
Excel paysheet
vb.net check isIde
I have an Excel spreadsheet that is too large
Use a countdown display in a batch .bat file
How to delete a replica from the synchronization list?
SBS 2008 Remote Web Workspace getting 10009 and continously prompting users for password, not letting them into there PCs