Oracle Transactional Business Intelligence

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Calculate Yesterday date based on CURRENT_DATE variable

276
Views
2
Comments

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

Comments

  • Clifford-Barrington Trett
    Clifford-Barrington Trett Rank 2 - Community Beginner

    maybe use: TIMESTAMPADD(SQL_TSI_Day , -1, current_date)

  • RichardChan
    RichardChan Rank 6 - Analytics Lead

    What message are you getting with CURRENT_DATE - 1 ? and yes TIMESTAMPADD is your other option