You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

Use TIMESTAMPADD in SQL Prefix

edited Aug 30, 2021 5:01PM in Reporting and Analytics for HCM 1 comment

Summary

What is the correct syntax for using TIMESTAMPADD in a SQL prefix without using a presentation variable prompt?

Content

Hello - I am creating an analysis that will have a corresponding agent to run weekly. The analysis is in the Compensation - Salary Details Real Time subject area. I would like to write an effective date prefix to pull the data as of the last day of the prior month, but have been unable to return results without an error. If I hardcode the date (e.g. SET VARIABLE PARAM_EFFECTIVE_DATE='2021-07-31'; ) I get the correct results, but as soon as I try to include a TIMESTAMPADD function, I get an error message. 

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!