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 / ajit

delete from emp
where empno in
(select empno
from emp
minus
select empno
from emp
where rownum <= ( select count(*) - 3
from emp
))

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call shell script from pl sql procedure?

1244


What is a ddl command?

1065


What is a record in a database?

1037


What are the different dcl commands in sql?

1117


How do I find duplicates in two columns?

1127


How does sql store data?

890


How does one load ebcdic data? : aql loader

1147


How to use transactions efficiently : transact sql

1030


What is a scalar value in sql?

1051


What are the various restrictions imposed on view in terms of dml?

955


Can we perform dml on view?

1028


How to run sql statements through the web interface?

1020


What is procedure in pl sql?

1020


What are different types of sql commands?

1091


What is data abstraction in sql?

1006