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
What are constraints and derivations?
Can you highlight the main features of ibm infosphere information server?
What is the use of hoursfromtime() function in transformer stage in datastage?
Where do you see different stages in the designer?
Differentiate between datastage and informatica?
Explaine the implimentation of scd's in ds indetail, please send me step by step procedure to perform scd's 1,2,3. Please replay for this, Thanks in advance
Name the different sorting methods in datastage.
What is the difference between account and directory options ?
how to achieve this output ? Two Input columns(ID & Name) - ID | Name 1 | Jack 1 | Kara In output there should be only 1 column which will be populated as - 1,Jack 1,Kara
Have you used Unstructured data?
What is datastage?
Whats difference betweeen operational data stage (ods) and data warehouse?
Which warehouse using in your datawarehouse
Explain datastage architecture?
Which commands are used to import and export the datastage jobs?