Skip to content
Advertisement

Select count on Oracle Query based on distinct condition

I am newbie with oracle pl/sql,
right now using oracle sqldeveloper,

i need help for my homework,

how to make the column number 2, 3, 4, 5, 6, … count based on first value column, the DISTINCT OWNER ?

can anyone help me? or suggest me with some hint?

this is wrong, i need the count n other column based on the first column what should i do ?

enter image description here

Advertisement

Answer

You should use conditional aggregation as following:

Cheers!!

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement