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's the difference between inner join and left join?

513


What is form and report?

519


What will you get by the cursor attribute sql%rowcount?

552


Is sql a oracle?

527


How to raise user-defined exception with custom sqlerrm ?

682






Can we enter data in a table in design view?

520


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

513


What is ttitle and btitle?

577


Is sql microsoft?

549


what is the difference between a local and a global temporary table? : Sql dba

556


What version is sql?

554


What is field delimiter?

638


How to execute a stored procedure?

566


Is subquery faster than join?

572


What is difference between sql and excel?

517