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
Sending objects containing objects from WCF Server
Error:1321 the Installer has insufficient privleges to modfiy the file x.mdf file
Merging two SQL Statements
Force desktop background except for remote access
Need to Save Scanned Image in gif format.
Connect to a Crosstab query in Access from Excel
return an email object's guid
copy query results into email body using vb and format like cut and paste
How do I calculate software availability in an Excel spreadsheet?
vb.net - save data from listview