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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

max date minus 1

Status
Not open for further replies.

pearlofperls

Technical User
Apr 5, 2007
24
0
0
US
how do i modify the synatx for max date minus 1

select MAX (date_col) from table_a

 
minus 1 what? asuming days:
select dateadd(dd,-1,max(date_col))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top