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 identify a primary key?
What is difference between my sql and sql?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
difference between anonymous blocks and sub-programs.
What is trigger price?
What are sql functions? Describe in brief different types of sql functions?
How to get list of all tables from a database?
What is Materialized View? In What Scenario we Use Materialized View?
how is exception handling handled in mysql? : Sql dba
What is the difference between an inner and outer join?
How to run sql*plus commands in sql developer?
What is the main difference between sql and pl/sql?
How do I delete a trigger?
how do you control the max size of a heap table? : Sql dba
Mention what are different methods to trace the pl/sql code?