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...

How to retrieve Duplicate Rows only in a Table?
Suppose if a Table Name is "Education". It consists of
multiple columns. Then if we insert rows into this table
with duplicate records then how can we retrieve only
duplicate records from that table?

Answer Posted / aravind

select SPAN_UUID, SPAN_UNIT_UUID, count(*) from
SPAN_SPAN_UNIT group by SPAN_UUID, SPAN_UNIT_UUID having
count(*) > 1;

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by truncate in sql?

1068


Can we use loop in sql?

969


What is embedded sql what are its advantages?

1043


In what condition is it good to disable a trigger?

1013


What does select count (*) mean in sql?

1018


What are the different type of joins in sql?

956


Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

1269


What are pl/sql cursor exceptions?

1106


Is sql procedural language?

967


Explain the steps needed to create the scheduled job?

1038


What is dml statement?

956


How many sql commands are there?

1114


How does postgresql compare to oracle/db2/ms sql server/informix?

1034


tell us something about heap tables. : Sql dba

1098


What is %type in sql?

968