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

write a query to delete similar records in same table

Answer Posted / bcaramu

delete from employee
where (empid, empssn)
not in
( select min(empid), empssn
from employee group by empssn);

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use pl sql in sql server?

1083


Is sql a scripting language?

1018


what are null values? : Sql dba

957


What is nvarchar max in sql?

1019


What is the difference between a database and a relational database?

1103


What is sql clause?

1052


Is left join faster than inner join?

1125


how to see the create table statement of an existing table? : Sql dba

1019


How do you rename a table in sql?

1113


Can we call a function containing dml statements in a select query?

980


How can you create an empty table from an existing table?

1080


How do I kill a query in postgresql?

1129


Is null operator in sql?

1041


Is left join inner or outer?

1015


Why use truncate instead of delete?

1017