How do you retrieve the last N records from a table?

Answer Posted / manas ranjan

the RANK() and DENSE_RANK() functions can be used to
determine the LAST N or BOTTOM N rows.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope and visibility in PL/SQL?

769


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

842


Explain how to use transactions efficiently : transact sql

715


What is the difference between stored procedure and view?

736


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

765






Why do we use view in sql?

727


What does pl sql stand for?

851


Explain the order of sql statement execution?

805


Why do we use sql constraints? Which constraints we can use while creating database in sql?

721


what is a control file ? : Sql dba

759


What does seeding a database mean?

689


What are the basic techniques of indexing?

778


What is type and rowtype in pl sql?

741


Is time a data type in sql?

644


How will you distinguish a global variable with a local variable in pl/sql?

838