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?

612


What are the key features of dbms?

566


What are the types of database model?

544


What are the constraints on severity level in raiseerror?

583


How to generate OIDS

1662






What is the maximum length of an extended property?

559


Can an extended stored procedure be called from inside a user-defined function?

610


When installing the datastage7.5x2 edtion iam getting aproblem i.e the cpu count is 2 but the cpu count in installation is one . how can i install in my p.c (system is dual core).

1786


Explain about the storage and physical database design?

533


Explain about relational operator join?

616


What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?

590


Which four data types cannot be used as a return type from a user-defined function?

581


What is dbms and its application?

554


How can I detect whether a given connection is blocked?

583


What is the database development process?

690