Does anyone know, off of the top of their head, if there is a Dateadd equivalent available in Vertica SQL? In MSSQL you feed in the following:
DATEADD(datepart, number, date)
I want to do something like this:
To_Char(Timestamp_Trunc(wo.Start_Date, 'DAY')+1, 'MM/DD/YYYY') >= Dateadd(, -4, ?)
The ? is a parameter that will give the ending date (via report builder report), so basically it is looking at the last four weeks worth of data.
Thanks for the help!
Travis
DateAdd Equivalent
Moderator: NorbertKrupa
-
- Intermediate
- Posts: 149
- Joined: Mon Apr 30, 2012 10:04 pm
- Location: New York
- Contact:
Re: DateAdd Equivalent
Thanks, I found it earlier in some documentation . . . it is Timestampadd