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 / prathapreddy
select col1,count(*) from <table name> group by col1 having
count(*)>1;
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Can you filter data in hashed file?
What is the purpose of pivot stage?
How to read multiple files using a single datastage job if files have the same metadata?
What is meta stage?
What are the types of containers and how to create them?
how can we create rank using datastage?what is the meaning of rank?
Is possible to create skid in dim,fact tables?
How you Implemented SCD Type 1 & Type 2 in your project?
What are the functionalities of link partitioner?
how to use self join using datastage ? can u tell me using stage how can we implemnet the self join
Can you explain repository tables in datastage?
Terminate Activity
What is a datastage job?
which r the connectors used in san?
How to perform incremental load in datastage?