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(2) sal from emp where sal order by desc

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of a local variable?

577


How can I create database in oracle?

559


How to see the table columns used in an index?

587


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


What are the differences between lov and list item?

555






what is the use of triggers in Java program? I mean where do we use triggers in Java programming?

1689


What is the difference between a user and a schema in oracle?

556


How do I use os authentication with weblogic jdriver for oracle and connection pools?

566


How to define an oracle sub procedure?

595


how to handle exceptions in post production

942


How to retrieve values from data fields in record variables?

559


How many types of tables supported by oracle?

574


Is oracle an open source?

632


What is a read write transaction in oracle?

594


What are the different types of record groups in oracle? Explain each of them

596