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

How does sql*loader handles newline characters in a record? : aql loader

987


how to get a list of all tables in a database? : Sql dba

922


What are triggers and its types?

997


What is sqlservr exe?

943


Explain the uses of database trigger.

1055


What is where clause in sql?

984


What is oracle pl sql developer?

936


How is a process of pl/sql compiled?

1087


what is 'mysqlshow'? : Sql dba

975


What is use of package in pl sql?

953


What is the difference between inner join and outer join?

931


What action do you have to perform before retrieving data from the next result set of a stored procedure ?

2529


What is the use of primary key?

954


What are the sql aggregate functions?

1068


When should I use nosql database?

946