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


Please Help Members By Posting Answers For Below Questions

How many areas for files does datastage have?

641


what is use of SDR function?

4707


What is the difference between account and directory options ?

620


What is a ds designer?

640


why do u need the IOS upgradation in a FC switch

1872






how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?

1919


What can we do with datastage director?

671


Is the value of staging variable stored temporarily or permanently?

573


what is the use of materialized view?

960


What is orabulk stage?

631


whom do you report?

1504


What is ibm datastage?

605


Have you used Unstructured data?

834


if we using two sources having same meta data and how to check the data in two sources is same or not? and if the data is not same i want to abort the job ?how we can do this?

1755


What are routines in datastage?

774