Given an employee table, how would you find out the second
highest salary?

Answer Posted / balindra sahani

select max(sal) from emp
where sal not in (select max(sal) from emp order by sal desc )

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 18 schemas?

615


Explain what a database is?

617


How to read and create .LDC data files which are used by linguatic dictionary.

2065


What is database design and development?

609


Write short notes on manual refreshes.

2296






What are the constraints on severity level in raiseerror?

590


How to customize error conditions.

1706


What is normalization? Explain different levels of normalization?

59854


How you can make a parameterized view?

561


What is the maximum length of an extended property?

563


Explain about the relational database?

613


I HAVE A PI ON COL A THE NEXT DAY I WANT CHANGE THE PI ON COL B? PLS SEND ME THE ANS

2423


fact table and dimension table containg one to many relationship or many to one relastionship

2082


Explain about a primary key?

574


What is DB Development software?

1619