Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date query

Status
Not open for further replies.

CSOP

Technical User
Joined
Sep 26, 2003
Messages
9
Location
GB
Hi

I'd like to know if there is an option where i could compare a specific date with the most recent date as the days change ie a non static variable.

Is there a variable like this (ie which acts like a calender and compares my selected feild with the changing days)?

eg.
select *
from table1
where myDateVariable < mostRecentDate

Is this too far fetched?

Many thanks
 
If by most recent date you mean today, GetDate() will retrieve the current system date.


&quot;Much that I bound, I could not free. Much that I freed returned to me.&quot;
(Lee Wilson Dodd)
 
Thankyou your an absolute star :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top