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
Describe link sort?
What are the types of jobs we have in datastage?
How do you generate sequence number in datastage?
How to read multiple files using a single datastage job if files have the same metadata?
Explain Quality stage?
How can you write parallel routines in datastage PX?
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?
What is use Array size in datastage
table actions available in oracle connector?
I/p : F1 table have A,B,C,D,E and F2 table having C,E,V i need output 0utput1: ABD output2: V any one suggest me this
What is the differentiate between data file and descriptor file?
Differentiate between data file and descriptor file?
AGGREGATOR default datatype
Describe the main features of datastage?
What are the types of views in datastage director?