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
"SELECT * FROM Question VB.NET
Company web in Sharpoint Services Keeps asking for Username and password
Query Field With Date/Time
Access Sales System Database
Adding Records to another Form
Trying to open Access files from version 2.0 from Access 2007. Getting a series of error messages.
Submit Information from Excel Form to Webpage
WCF Question
How do I apply computer settings via a group policy applied to user objects?
Exchange 2010: Cannot send