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
Website blog
Insert code in Trigger causes ORA01591 lock held by in doubt transaction
Date to String Conversion
How to start rac database as read only?
Moving users to different location with Folder Redirection enabled
Microsoft Exchange 2003 Standard 75GB maximum
Event Log for Excel Mobile or Win Mobile 6.1
Exchange object not found
To Export Oracle Schema without use of Import and export
Semi-transparent router / single interface responding to several MACs?