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
Access TableAdapter and TableAdapter Query for one DataGridView?
Office communicator popup
select item in listbox via VBA in form onload event
Creating batch file
Implementing Multithreading to increase performance.
What is X400 & X500 in Active directory.
PLEASE HELP-I Can't make changes to email settings in Outlook
SSIS 08 - Manifest Deploy Validation fails, can't access password.
Web-enabling reports?
Adding a Text File to a ClickOnce Deployment