HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY
IN EMP TABLE
Answer Posted / subbu
Query Output is :
SQL> select *from emp where sal=any( select sal from emp
group by sal having count(sal)>1);
EMPNO ENAME JOB MGR HIREDATE
SAL COMM DEPTNO
---------- ---------- --------- ---------- --------- -------
--- ---------- ----------
7521 WARD SALESMAN 7698 22-FEB-81
1250 500 30
7654 MARTIN SALESMAN 7698 28-SEP-81
1250 1400 30
7788 SCOTT ANALYST 7566 19-APR-87
3000 20
7902 FORD ANALYST 7566 03-DEC-81
3000 20
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
Explain nested stored procedure. Syntax and an example for create nested stored procedure?
What is a dbms wizard?
How to add a new column to an existing table with "alter table ... Add" in ms sql server?
Why would you call update statistics?
Difference between Logical Page and Physical Page in SSRS.
what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration
What you can do to delete a table without the delete trigger firing?
What options are available to audit login activity? : sql server security
What is query processing?
Determine when to use stored procedure to complete sql server tasks?
What will be the maximum number of index per table?
How to select some specific rows from a table in ms sql server?
What are the different index configurations a table can have?
Explain features of analysis services?
What stored procedure would you use to view lock information?