Write a query to get last 10 records from the table.
Answer Posted / akshaya
select * from last10
minus
select * from last10
where row >= (select COUNT(*)-10 from last10)
condition should be >= not <=
for all the above queries
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what are the nonstandard string types? : Sql dba
Why do we use %rowtype & %type in plsql?
Can we use having without group by in sql?
What is the usage of sql functions?
Which are the different case manipulation functions in sql?
Is pl sql a programming language?
What version is sql?
How to return multiple rows from the stored procedure?
Where do we use pl sql?
What is the default isolation level in sql server? : Transact sql
What is trigger in pl sql?
explain advantages of innodb over myisam. : Sql dba
what is a constraint? Tell me about its various levels. : Sql dba
What is a sql statement?
What is rownum and rowid?