Microsoft
Software
Hardware
Network
Question : Return records On Date
I have a table that has several columns 2 of them are "from_date" and "to_date" respectively.
I need to write a query to see if today's date.... GetDate() falls between any of those dates, and return only those records.
Answer : Return records On Date
SELECT *
FROM SomeTable
WHERE from_date <= GETDATE() AND to_date >= GETDATE()
Random Solutions
MacMail & Exchange Public Folders - How to access them? I don't see them...
How to enforce using Citrix Universal Print Driver in Citrix
exchange server 2003 smtp
Insert into MySQL Table from MSSQL Insert Trigger
How can I change the created and/or modified date of a FOLDER?
"Ad Zoo .Net" ??
How to clone Windows 2008 server
Mac 10.5.8 USB Printer - RastaToBrother2030 Failed
How to locak down Windows 7 PRO workstations
Backup Exec - Byte Count vs. Capacity Discrepancy