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
What is difference between primary key and foreign key?
Can a database be shrunk to 0 bytes, if not, why?
What Are the Main Features of SQL Azure?
What is the difference between mysql and sql server?
what is the difference between them (ethernet networks and token ring networks)? : Sql server database administration
What is @@error in sql?
What is database white box testing?
What is the template in sql?
What is the default value of an integer data type in sql server 2005?
What is the difference RDBMS and Graph Database?
How do I find query history in sql server?
What is key attribute?
How to list all objects in a given schema?
What is the difference between createstatement and preparedstatement?
How to connect Azure federated root database and apply federation in entity framework?