You can try this. select count(*),sum(decode(action_flag, 'Y',1,0)) from tab1 where rpt_num = 20
Regards, Jignesh Makwana. On 12/02/2011 11:47 AM, gayathri Dev wrote:
select count(*) from tab1 where rpt_num = 20 select count(*) from tab1 where rpt_num = 20 and action_flag = 'Y'.
-- You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to Oracle-PLSQL@googlegroups.com To unsubscribe from this group, send email to oracle-plsql-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en