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 empno,sal 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 ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of problems occurs if we do not implement proper locking strategy?

965


How to delete duplicate records based on single column from a table?

601


Tell me the difference between clustered and non-clustered index?

510


Explain can you implement data mining in ssrs?

106


What is 4nf in normalization form?

562






What is the correct order of the logical query processing phases?

521


What is the command dbcc checkdb used for?

530


You schedule a job to run every minute what will happen if the first job runs more than 1 min? Will the second instance of the job start?

581


What is normalization of database?

599


What are the steps you should follow to start sql server in single-user mode?

480


What happens when converting big values to numeric data types?

565


How do I edit a procedure in sql server?

546


Should you normalize audio?

525


Mention what are the different types of ssrs reports?

98


what does the automatic recovery do? : Sql server administration

533