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 / umadevi

--deletes records within table without changing table name
delete from temp t1 where rowid<(select max(rowid) from temp
t2 where t1.empno=t2.empno) order by empno;

or
--create new table n insert records.
create table t1 as select distinct * from temp;

or
(truncate table)
truncate table t1;
insert into t1 select distinct * from temp;

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is output spooling in sql*plus?

1035


What are local and global Indexes and where they are useful.

1444


What is pl sql block structure?

1036


What is t sql in sql server?

1075


Can a table contain multiple foreign key’s?

997


How to install oracle sql developer?

1046


Is postgresql a server?

1055


what is self join and what is the requirement of self join? : Sql dba

1145


What are reports usually used for?

1023


How is debugging done?

981


what is try_catch block in procedure

1748


how to check server status with 'mysqladmin'? : Sql dba

1075


What is dml statement?

956


What is sql clause?

1051


What is a sql driver?

999