i have a table
col1
10
20
30
40
10
20
50
my requirement is how to retrive only duplicates like
10
10
20
20
like this how it's possible in SQL?
Answer Posted / sivakrishna
select * from emp as p where rowid<(select max(rowid) from
emp s where p.deptno=s.deptno);
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How do you start developing a datastage project?
What is the use of datastage designer?
What is the difference between account and directory options ?
Can you explain repository tables in datastage?
Can you define merge?
how do u catch bad rows from OCI stage? And what CLI stands for?
Where do the datastage jobs get stored?
What are routines in datastage?
Difference between IBM DATA STAGE8.5 and DATA STAGE9.1 ?
What a datastage macro?
What are the difference types of stages?
What are the various kinds of the hash file?
What is difference between symmetric multiprocessing and massive parallel processing?
What is ds designer?
How to reverse the string using unix?