1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.

Answer Posted / swapna

select top(1) sal From sample
where sal
in (select top(2) salfrom sample order by saldesc)
order by sal asc

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

1503


Where do we use decode and case statements?

551


What is the sid in oracle?

530


In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?

1919


What is data file?

610






what is dynamic SGA and static SGA

3830


How to end the current transaction in oracle?

543


What is the dynamic sql in oracle?

587


What is java oracle used for?

523


What privilege is needed for a user to delete rows from tables in another schema?

562


What is ASM (Automatic Storage Management) in Oracle?

707


Please explain oracle data types with examples?

582


I have some query regarding Report generation from Oracle Apps "PO module". I have to generate a report where table columns are as below: Vendor_name Invoice No PO Number Item_Quantity Value of Goods Date of Shipping Name_of_the_transport Date_of_receipt_issued. Now my questions is :from which table/column I can get the information of "Name_of_the_transport" column. Thanks in advance.

2879


how to handle exceptions in post production

942


What is the data type of dual table?

521