Categories
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Calculate Yesterday date based on CURRENT_DATE variable

Giuseppe 1234
Rank 2 - Community Beginner
Summary
Calculate Yesterday date based on CURRENT_DATE variable
Content
Hello,
how do I could calcolate obtain yesterday date based on current_date field in an OTBI analysis, to use it in a where clause for example?
ex "...WHERE "Compensation Person Worksheet Details"."Worksheet Last Update Date" < CURRENT_DATE-1" (not working)
Thank you in advance
0
Comments
-
maybe use: TIMESTAMPADD(SQL_TSI_Day , -1, current_date)
0 -
What message are you getting with CURRENT_DATE - 1 ? and yes TIMESTAMPADD is your other option
0