Answer Posted / sixface
ID NAME
1 ravi
2 umang
1 ravi
3 nishant
SELECT id,name
FROM emp
WHERE id in
(
SELECT id
FROM emp
GROUP BY id
HAVING COUNT(*) > 1
);
It gives all duplicate rows........
Lets try.....
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between distinct and unique in sql?
What are database links used for?
Is sql port 1433 encrypted?
Can there be 2 primary keys in a table?
What are different types of queries in sql?
What is scalar function?
How do I view tables in mysql?
Can we use view in stored procedure?
Write a sql query to find the names of employees that begin with ‘a’?
What is sql keyword?
What is information schema in sql?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
What steps server process has to take to execute an update statement?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
what is a relationship and what are they? : Sql dba