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 / sivaprakasam
select * from table1 where id in (select id from table1
group by id having COUNT(id) > 1)
| Is This Answer Correct ? | 29 Yes | 3 No |
Post New Answer View All Answers
What all the types of jobs you developed?
How to perform incremental load in datastage?
Where do you see different stages in the designer?
Describe routines in datastage? Enlist various types of routines.
What is difference between server jobs & parallel jobs?
What is the difference between server job and parallel jobs?
Name the command line functions to import and export the DS jobs?
What is the flow of loading data into fact & dimensional tables?
Differentiate between hash file and sequential file?
What are stage variables?
Define repository tables in datastage?
What is the difference between odbc and drs stage?
Can you explain players in datastage?
What are the steps required to kill the job in Datastage?
Highlight the main features of datastage?