wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records

Answer Posted / tulasi ravi kumar

hi this is tulasi ravi
id - ravi106109@gmail.com

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


feel free to mail queries,,,.....

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is shared lock?

481


Can we add an identity column to decimal datatype?

572


What is a covering index?

520


How to create sub reports?

192


what are different types of raid configurations? : Sql server database administration

479






How to create user defined functions with parameters?

628


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

1547


how to do partition in sqlserver

1962


What are the mathematical functions supported by sql server 2005?

535


What is the difference RDBMS and Graph Database?

619


Mention what are the core components of ssrs?

206


How to create a store procedure with encryption?

513


What are the system database in sql server 2005?

542


What are the differences between local and global temporary tables?

545


How to create a new login name in ms sql server?

541