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 many areas for files does datastage have?
How to perform incremental load in datastage?
Demonstrate experience in maintaining quality process standards?
Lookup constraints
Explain entity, attribute and relationship in datastage?
How you Implemented SCD Type 1 & Type 2 in your project?
Differentiate between odbc and drs stage?
Difference between in process and inter process?
1.what is repartionoing technique? 2.what deliverables transferred to client using datastage? 3.how to write loop statements using nested loop sequence?
Define Data Stage?
What is quality stage?
Does datastage support slowly changing dimensions ?
How many types of hash files are there?
What are the some differences between 7.x and 8.x version of datastage?
Whats difference betweeen operational data stage (ods) and data warehouse?