find out the second highest salary?

Answer Posted / karthikeyan

select max(sal) from emp
where sal <(select max (sal)from emp);

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of synonyms?

605


How translate command is different from replace?

552


What is Segment Advisor in Oracle?

678


What is the usage of save points in oracle database?

536


What is not equal to in oracle?

534






What are the attributes of cursor?

594


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

1929


How to use an explicit cursor without open statements?

618


How can we force the database to use the user specified rollback segment?

562


Explain the use of show option in imp command.

645


1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.

1618


Whats the benefit of dbms_stats over analyze?

1499


What is a lookup table in oracle?

545


How do I know if oracle client is installed on windows?

502


Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

1589