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
Permanently remove review tracking?
how can I compare two databases in foxpro to check if they are identical?
nVidia nForce Raid controller embedded in Proliant ML115 G5 Event 129
I want to hyperlink a image in pdf using vb.net code using iTextSharp.text and Imports iTextSharp.text.pdf class
Export table to another Access DB
odbc problem (sqlexec, sqlconnect)
Help with OnTime Event
PowerPoint Issue
Public folder replication problems
How do I convert double to string?