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
E72 - How to make email work without activating data services?
I need to accumulate the values in query
I want to make Liberty reserve API
Is exercising in an air conditionedroom a good idea?
Schedule Task "Could not start"
changing external server name.. do I need to change anything in Outlook
Calling IE to run on second monitor in batch file log in script
How to find and replace specific string with blank using sed or any better cmd?
Help with Lucene query in Alfresco
How to access class due to 'cannot instantiate abstract class' error