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
Adobe Acrobat freezes when opening documents with tickmarks
Outlook suddenly takes a long time to do a send/receive
After Bootup mouse pointer moves but does not activate anything and houglass hangs on toolbar
Access Denyed with Squid
Macrovision Setup will not run proprly
Distribution List Membership
Appliying registry settings to current users profiles.
Winword.exe
Attach DB from storage drive
powershell Get-Acl to Set-Acl system date variable and output to file