Microsoft
Software
Hardware
Network
Question : Simple SQL Query Date Command
Hi SQL Experts,
I need help with a simple select statement.
I have a tenant table with field called 'dtleaseto' that holds the last date of the lease. I want to run a select statement to return all tenant records that have their 'dtleaseto' date ending within 30 days of today.
Answer : Simple SQL Query Date Command
select *
from tenent
where dtLeaseTo Between CONVERT(varchar(10), getdate(), 120 ) AND CONVERT(varchar(10), getdate()+30, 120 )
Random Solutions
connecting to sybase with ado in vba
IIS 5.0 with NT Auth enables give Access Denied
Sort form by clicking column headings
how to hide the citrix toolbar from all users
Single Quote Escape Character
Ruby and SQLite3: How To Force Busy Exception
Forms 6.0- how do I set values for a radio button?
NTWKS 3.51 BSOD - UNKNOWN HARD ERROR
Join in a Delete Query
how to create a Active X control out of C/C++ code