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
What stored by the master?
How you can find out if an index is useful to the optimizer?
How to select all columns of all rows from a table with a select statement in ms sql server?
What is apply operator in sql?
Explain various On-Delete options in a DB table. Which is the default option?
How do I completely remove sql server instance?
Differentiate sql server reporting services vs. Crystal reports?
How can you manage sql azure security?
Explain trigger classes i.e. Instead of and after trigger?
What is subquery in sql?
Name some of the open source software that you can use in alternative to SSR?
What is a file group?
How to create a simple table to test triggers in ms sql server?
Is mysql better than sql server?
How to set the current database in ms sql server?