wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records
Answer Posted / nitesh srivastava
select * from emp
minus
select * from emp where rownum<(select count(*)-2 from emp)
| Is This Answer Correct ? | 8 Yes | 10 No |
Post New Answer View All Answers
How to verify the port number of the sql server?
How to grant a permission in ms sql server using "grant execute" statements?
What happens to a trigger with multiple affected rows?
How to return the date part only from a sql server datetime datatype?
Explain what is use of dbcc commands?
How do you handle datasets larger than 50 gb?
Where is my database stored on the hard disk in ms sql server?
What is sleeping status in sql server?
Explain syntax for disabling triggers?
How to update values in a table with update statements in ms sql server?
How to get nth highest salary from employee table.
Can a cursor be updated? If yes, how you can protect which columns are updated?
What is coalesce and check constraint in sql server?
Explain about nested stored procedure?
Explain the concept of view and Types of views in SQL server?