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 / sudipta santra

delete from
(select * from tab1
minus
select * from tab1 where rownum<n-2 order by rowid)

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the topics in pl sql?

1024


what is a materialized view? : Sql dba

1133


What are the different set operators available in sql?

1081


What type of database is sql?

1068


how many ways we can we find the current date using mysql? : Sql dba

1146


how would you enter characters as hex numbers? : Sql dba

1038


What is the most important ddl statements in sql are?

1042


What are sql indexes?

1047


Why truncate is used in sql?

1043


What does closing a cursor do?

1376


How do I debug a stored procedure?

1171


how many tables will create when we create table, what are they? : Sql dba

1119


What is inner join in sql?

1139


What is sql used for?

1166


What is sap sql?

1030