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
What happens if null values are involved in datetime operations?
Explain difference between control flow and data flow?
What are three major types of constraints?
How to stop a loop early with break statements in ms sql server?
explain different levels of normalization? : Sql server database administration
Why variables called the most powerful component of ssis?
What is 1nf normalization form?
What are the steps you will take to improve the performance of a poor performing query?
How to use old values to define new values in update statements in ms sql server?
How to add additional conditions in SQL?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
List the different types of collation sensitivities in sql server?
Tell me about normalization in DBMS.
Why do we need different type of parameter?
Tell me what are the essential components of sql server service broker?