SQL query in obiee report — Oracle Analytics

Oracle Analytics Cloud and Server

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

SQL query in obiee report

Received Response
410
Views
7
Comments
Chandra kanth
Chandra kanth Rank 3 - Community Apprentice

HI,

Please suggest me ...i have report which shows

I have 100 employees. there are CEO and subordinates

My report should display data in the follwoing way

EMployee                                                            Sal

CEO                                                                    10000(CEO only)

Subordinates (99 employees)                             80000 (sum of 99 employees)

All                                                                        CEO salary + 99 employees salary

I have written query with union ....i should not use that ...some restriction in logic. I am strugging in writing sql query. Please help me out.

Regards,

Chandra kanth.

Answers