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 will you find out the last three records in a table
with n no of records and delete them

Answer Posted / aswin

This query cost the performance :
delete from emp where empno in (select empno from (select
empno from emp order by rowid desc) where rownum <= 3)

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is a subquery ?

1186


What is sql in java?

1082


What is rank dense_rank and partition in sql?

1038


How do I view output in sql developer?

1084


How do you rename a table in sql?

1108


Which is faster truncate or drop?

1045


Which kind of parameters cannot have a default value in pl sql?

1148


what is 'mysqlshow'? : Sql dba

1026


What is an emotional trigger?

1005


How do I filter in sql profiler?

992


Is pl sql still used?

975


What is an alias command?

1068


Why use stored procedures?

1090


give the syntax of grant and revoke commands? : Sql dba

1149


how to convert numeric values to character strings? : Sql dba

1105