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 denormalization. : Sql dba
How can we optimize a sql query?
Is it mandatory for the primary key to be given a value when a new record is inserted?
Explain the select statement in sql?
how do you control the max size of a heap table? : Sql dba
What is the maximum number of columns in sql table?
How delete a row in sql?
Is record in oracle pl sql?
What does the acronym acid stand for in database management?
how to calculate expressions with sql statements? : Sql dba
How do I upgrade sql?
How do you optimize a stored procedure in sql?
How do you declare a user-defined exception?
How do you explain an index number?
What are the datatypes available in pl/sql ?