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
Changing Primary SMTP Address
Dropdown list with Category & subcategories out of the same table
Active X problem with Windows 2000 TS and IE 6 SP1
IE can't see internet, but pings gateway ok
Access Date Interval Query
SQL query using the Count function in Access
Making a form select the first record in ADO recordset
Adding a toolbar
SQL Rownumber command
Your message did not reach some or all of the intended recipients.