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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Count of rows from different Columns

user10594152Apr 8 2009 — edited Apr 9 2009
SELECT (SELECT COUNT (empno) empno
          FROM emp) empno, (SELECT COUNT (mgr) mgr
                              FROM emp) mgr, (SELECT COUNT (sal) sal
                                                FROM emp
                                               WHERE sal > 2000) sal
  FROM DUAL;
Hi friends
Please let me know any better solutions for this query..??
This post has been answered by BluShadow on Apr 8 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2009
Added on Apr 8 2009
13 comments
11,306 views