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 can you check the version of sql server?
What is SQL Azure?
How to set database to be single_user in ms sql server?
How to add an address record into adventureworkslt?
How to count rows with the count(*) function in ms sql server?
What is the maximum number of instances in 32 bit and 64 bit sql server 2012?
Do you know what is lock escalation?
How can you find out which stored procedures are recompiling?
How does a profiler work?
How to choose all records from the table?
How you can find out if an index is useful to the optimizer?
What is 2nf normalization form?
How many database files are there in sql server 2000?what are they?
Can you roll back the ddl statement in a trigger?
What is updatable resultset?