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
how do you tune the slow running queries in oracle db , explain the methodology
Is pl sql useful?
What is the function that is used to transfer a pl/sql table log to a database table?
Explain 3 basic parts of a trigger.
How to create a menu in sqlplus or pl/sql?
How many disk partitions should I have?
How do you write a complex sql query?
how to use case expression? : Sql dba
what is online transaction processing (oltp)? : Sql dba
Why do we need view in sql?
What are the different types of joins in sql?
What is a mutating table and a constraining table?
What makes a good primary key?
What is the difference between rollback and rollback to statements?
What are primary key and foreign key and how they work?