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 do you retrieve the last N records from a table?

Answer Posted / nani

select * from emp a where &N > (select count(*) from emp b
where b.rowid > a.rowid)

N = No.of rows.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What has stored procedures in sql and how we can use it?

1082


How can we store rows in PL/SQL using array?

1220


Can we commit in trigger?

978


What is scalar data type in pl sql?

1070


what are the advantages and disadvantages of views in a database? : Sql dba

1043


What is bind variable in pl sql?

1053


What is the purpose of my sql?

951


How many developers work on postgresql?

983


What is data control language (dcl)?

1138


Does view contain data?

1037


What is indexing in sql and its types?

1080


What kind of join is join?

972


what is the difference between $message and $$message? : Sql dba

998


What is a full join sql?

1057


What is interval partition?

1055