Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 54 Oracle Analytics and AI Sharing Center
- 26 Oracle Analytics and AI Lounge
- 311 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.7K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 117 Oracle Analytics and AI Trainings
- 24 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Why is CASE function always returning ELSE statement?
Robin Vanhoegaerden
Rank 1 - Community Starter
Within our Case function we are comparing a number of months with "Timestampdiff" function with a descriptive flexfield that has numbers. We added the "Timestampdiff" function as a separate column in our analysis and did the same for the dff and both return numeric values. Our code is looking as follows:
CASE WHEN CAST(TIMESTAMPDIFF(SQL_TSI_MONTH, "Job Application - Legislative Information"."Regulatory Response Date of Birth", CURRENT_DATE)/12 AS Int) > CAST( "Job Requisition - Additional Details"."IRC_REQUISITIONS_DFF_D_MAXAGE_" AS Int) THEN '0' ELSE '1' END
0