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 is difference between cursor and trigger?

569


What do you mean by query optimization?

556


Is pl sql a programming language?

561


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

651


What are the popular database management systems in the it industry?

575






How does cross join work?

509


How can we link a sql database to an existing android app?

555


What are the methods of filing?

526


What is the difference between joins?

546


What is pls integer?

598


The select into statement is most often used to create backup copies of tables or for archiving records?

573


What is the non-clustered index in sql?

596


What has stored procedures in sql?

611


Is mariadb nosql?

598


What is the starting oracle error number? What is meant by forward declaration in functions?

551