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
Deployment
Sage CRM secure web link for external users
How to disable user account and/or disable change password feature in Windows 7 home premium?
Cannot enable infopath in sharepoint 2010
Thunderbird inexplicably crashing....
That's not contempt. THIS is contempt
Disable Windows SBS CSE Policy
pro*c demo file missing
Crystal Reports for Visual Studio 2010
open Firmware