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
Online marketing manager - job requirements
My priv1.edb and priv1.stm are increasing in size by the day-What shud I do ?
How to copy multiple charts from excel in word
how to move one application from one computer to another
SEO Technique - Is this going to end up in my site getting penalised?
K5400 - is it Terminal server aware?
Compact and repair database
How can I fix the error lsasse.exe - unable to locate component
Sybase SQL Data Recovery
ruby script to automate login