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
Cannot access the stage/root method getChildByName
DFS and PreExisting Data how to I merge them?
Turn off transaction logging for specific transactions?
Replacing html element inside javascript
Folders visible but no Files
Added new domain controller and Netlogon and sysvol are not shared.
Abnormal Random Windows 2000 Shutdown
Inserting a Carriage Return in a Javascript Function
Google AJAX APIs
vbscript window open