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

Answer Posted / sowjanya

Select * from emp where sal=(select Max(sal) from emp where
sal<(select Max(Sal) from emp)

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use online Backups?

1734


Any sample or model question of punjab national bank for deputy manger IT or any sample of PNB.any1 plz do send on

1825


Explain about network model?

591


How can I detect whether a given connection is blocked?

588


Explain about relational database management systems?

574






Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2016


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

596


Explain the role of indexing in databases?

645


What are the key features of dbms?

574


What are the types of database model?

552


State the acid rules?

688


What are the three types of database design?

549


What is a database development?

524


To convert IDMS to DB2, how to deal with IDMS occurs and redefined clause?

3443


What are data modelling techniques?

531