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
VFP Detail 1 band is too large for page
Accessing application component in .net
Combo box depend of an other one - update problem - Access
Format an amount without the decimal point
SQl Server 2005 Event ID 833
How do I display the variable in Message Window of Query Analyzer?
How to use SOAP in IIS
ASp.NET Image Button OnCommand doesnt fire
GPO Package error
SQL Select query with Case when creating a frequency distribution