how to find the second salary?

Answer Posted / sannnnnnnnnnn

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I track the changes or identify the latest insert-update-delete from a table?

541


What is user defined datatypes and when you should go for them?

591


What is use of except clause? How it differs from not in clause?

602


What action plan is preferred if sql server is not responding?

539


When would you use sql joins?

527






Mention the command used to rename the database.

536


What are the options which must be set to allow the usage of optimistic models?

519


What are page splits?

585


what is the main function of a query parameter?

111


Explain nested join?

568


What happens on checkpoint?

618


How to copy the tables, schema and views from one sql server to another?

560


Tell me what is difference between view and materialized view?

525


What is a rownum?

505


Tell me about normalization in DBMS.

583