Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 42 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 277 Oracle Analytics and AI News
- 50 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 19 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
MAX EMAIL ADDRESS in one row
How to display in one row the Work email (if exists) or home email if the work email is null?
this function does not work
MAX(CASE
WHEN "Person Email Addresses"."Email Type Code"='W1'
THEN "Person Email Addresses"."Email Address"
WHEN "Person Email Addresses"."Email Type Code"='H1'
THEN "Person Email Addresses"."Email Address"
END by "Worker"."Person Number")
Answers
-
Hi @rrr You need to use a pivot view. Person Number will be in rows. Email Type will be in column. Email must be in Value column, On the Email, apply aggregation rule as Min or Max. You will get all Emails of a worker in a single row
Raghu
1 -
Hi @Raghavendra Raghunath-Oracle thank you for your answer.
But my final report should display 1 column for email:
If the employee have work email, Its displays work email
else, it displays home email.
and it should be use the max for 1 row for each emp.
0 -
Hi @rrr unzip and unarchive the attached analysis to your instance. Run it and check. I have the logic modified in the Email column.
Raghu
1 -
@Raghavendra Raghunath-Oracle Thanks! its retrieves the right max Email.
But how can I display (marge) it into one Column ?
0 -
Hi @rrr fyi
Raghu
0



