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

Answer Posted / nzabin

select PO_header_id from (select PO_header_id from PO_HEADERS_ALL order by PO_header_id
desc) where rownum <=10 order by PO_header_id;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of sql commands?

698


What is your daily office routine?

1988


What is the use of %rowtype?

752


Can two tables have same primary key?

731


How insert into statements in sql?

791






How do you identify a primary key?

815


What are the types of operators available in sql?

773


ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..

2183


What is the difference between the implicit and explicit cursors?

745


What is the difference between cluster and non-cluster index?

809


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

748


what are all types of user defined functions? : Sql dba

758


What are predefined functions in sql?

714


Can a trigger call a stored procedure?

750


What are the disadvantages of file system?

831