Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to read the length of word in unix?

1433


Describe link sort?

1059


tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise

3182


What is the difference between orabulk and bcp stages?

1073


How to convert RGB Value to Hexadecimal values in datastage?

4058


What steps should be taken to improve Datastage jobs?

1120


What are the difference types of stages?

1287


What are the some differences between 7.x and 8.x version of datastage?

1306


im new to this tool im now at project plz tell me step by step process how to design plz help me i wnt to go with exp for job plz give me d proper design and explination

2258


What is merge stage?

1382


Differentiate between Join, Merge and Lookup stage?

1141


what is the use of materialized view?

1638


what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?

1461


What are the different common services in datastage?

1337


What is the purpose of pivot stage and types of containers in datastage

1082