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

Can we use view in stored procedure?

955


How is indexing done in search engines?

1023


Why is %isopen always false for an implicit cursor?

1153


What are the qualities of 2nf?

1097


Why we use sql profiler?

1023


How to rename a column in the output of sql query?

1131


what is sp_pkeys? : Transact sql

1206


What is the basic form of sql query?

996


Which is faster count (*) or count 1?

1089


How many subqueries can be nested in a statement?

1042


Explain the savepoint statement.

1137


Define the select into statement.

1112


Does group by remove duplicates?

1092


How do you write an inner join query?

996


What does sign mean sql?

1183