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 linked server in sql?
Differentiate between delete and truncate.
What do we need queues in sql service broker?
How to create a view using data from another view?
Differentiate sql server reporting services vs. Crystal reports?
What is the difference between delete and truncate statements?
Explain filestream storage of sql server 2008?
What is model database in sql server?
What are the events recorded in a transaction log?
Explain sql delete command?
What is truncate table?
What is federation member?
How will you add a dimension to cube? : sql server analysis services, ssas
What is conditional split?
Can we write trigger for view?