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.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
SQL Help for Dates crossing into New Year
Summary:
HI All,
I have a requirement to pull a list of dependents that will be turning 21 within 6 weeks (ie. If I run the report today, I should be pulling into those dependents that have a birthday in December/January and will be turning 21.
My query works great until we got to November/December.
I have logic that is looking at the sysdate which I understand that this is my issue I just can't figure out how to add logic to the where clause that says if Current month = 11 or 12 then add a year to sysdate
Content (required):
SQL logic to determine when someone is turning 21
Tagged:
0