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!

sum of datas from decode retuening values

942638Jun 16 2012 — edited Jun 16 2012
How to sum multiple values returning from decode , i have following conditions :=

sum(decode(v.value, 1 , 1 , 0 )) s , sum(decode(v.value, 2 , 1 , 0 )) s1,
sum(decode(v.value, 4 , 1 , 0 )) s3

now I want the sum of s , s1 ,s3.... but applying sum at query level is not working.... sum (s,s1,s3) is not working

please help

Edited by: user12403816 on 16 Jun, 2012 6:46 AM
This post has been answered by John Spencer on Jun 16 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2012
Added on Jun 16 2012
2 comments
1,237 views