Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

conditional GROUP BY clause

987705Jul 26 2013 — edited Jul 26 2013

Hi,

I have four columns in group by clause. I want to add conditional group by clause.

Case 1 : If one of the  column's value is null, I don't want to include it in group by clause. Means, Now GROUP BY clause will have only 3 columns.

Case 2 : If not null, then GROUP BY clause with all four columns.

Please help me out on this.

Thanks in advance.  

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 23 2013
Added on Jul 26 2013
7 comments
1,239 views