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


Please Help Members By Posting Answers For Below Questions

How to call a javascript function from pl sql?

649


Is sql database free?

624


What is union, minus and interact commands?

849


What is sqlcontext?

627


how to include character strings in sql statements? : Sql dba

626






What is difference between sql function and stored procedure?

591


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

2086


What are the different set operators available in sql?

655


Is sql scripting language?

620


What is the default isolation level in sql server? : Transact sql

662


What is the purpose of design view?

621


What is left join in sql?

667


Is sql better than access?

629


How can I get the number of records affected by a stored procedure?

669


Can we change the table name in sql?

616