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

Delete duplicate records in the emp table.

Answer Posted / valli

delete from emp where rowid in(
select rowid from (
select emp_no, sal,rownum() over (emp_no,sal) as
Rownum from emp order_by emp_no,sal
) where rownum > 2
)

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why join is faster than subquery?

1113


Is sql the best database?

976


Is it possible to include an insert statement on the same table to which the trigger is assigned?

1016


Explain the difference in execution of triggers and stored procedures?

1022


Is subquery faster than join?

1014


Which one is faster ienumerable or iqueryable?

934


How much does sql certification cost?

1094


How do I view an execution plan in sql?

986


Explain dml and ddl?

996


What is raid? How does it help storage of databases?

1087


What does pl sql stand for?

1117


what are the 'mysql' command line arguments? : Sql dba

1139


How does cross join work?

960


What's the procedure?

929


Write a sql query to get the third highest salary of an employee from employee_table?

1074