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
Setting Folder Permission in Windows XP - VB Script
Probably an easy question, but how can I set the domain name for use with iis on my lan?
Insert Script from the command prompt
error SQL3126N when loading data from local file to remote DB2 instance
Microsoft Exchange 2010
Complex SQL 2005 Query Help Needed
VB.Net 2008: Send email using richtextbox as Body ignoring Vbnewline and CRLF
PowerShell: How to find a contact in W2k8 R2
How to create a Gold Image using SCCM
Comparing columns in a table