Write a query to get last 10 records from the table.

Answer Posted / siddharthapenchala

select * from <TN>
minus
select * from <TN>
where
rownum <= (select count(*) - &n from <TN>)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nosql example?

786


Show the two pl/sql cursor exceptions.

810


What is java sql drivermanager?

751


how to present a past time in hours, minutes and seconds? : Sql dba

747


Do we need to create index on primary key?

646


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3726


Why left join is used in sql?

707


How to return an array from java to pl/sql?

800


describe mysql connection using mysql binary. : Sql dba

759


Which is better trigger or stored procedure?

695


Explain the steps needed to create the scheduled job?

757


Is sql an operating system?

723


Can delete statement be rollbacked?

734


What is the example of procedure?

690


How to revise and re-run the last sql command?

847