HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY
IN EMP TABLE
Answer Posted / asit
Can someone answer to this. on below query where i want to find same salary in employee table,
SELECT * FROM EMPLOYEE WHERE (SAL IN (SELECT sal FROM empLOYEE GROUP BY sal HAVING COUNT(sal) > 1))
i am getting correct output.
but if i change it to 'COUNT(SAL)>=1' then it prints all the lines from the table.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
can you implement data mining in SSRS?
How to insert a new row into a table with "insert into" statements in ms sql server?
Why are views required in the sql server or in any other database?
What is thr feature of change data capture?
how can you check the level of fragmentation on a table? : Sql server administration
What is Lock table in SQL?
What is the main difference between ‘between’ and ‘in’ condition operators?
what is blocking? : Sql server database administration
What is Dependency Injection and provide example?
Difference between drill down and drill through report.
how would you store your query in an SSRS report or a Database server?
What is normalization? Describe its different types.
Can you explain what is sql server english query?
What do you understand by user-defined function in the sql server?
Explain unique key in sql server?