how to find the second highest salary from emp table?

Answer Posted / syed hussain

select min(salary) from tbl_emp where salary in
(select top 4 salary from Tbl_emp order by salary desc)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is crud diagram?

504


define sql delete statement ? : Sql dba

542


how can I make a script that can be bi-language (supports english, german)? : Sql dba

532


What are the three pl sql block types?

562


what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba

496






How do rank () and dense_rank () differ?

512


What does seeding a database mean?

520


How can I get the number of records affected by a stored procedure?

564


What is a sql trace file?

541


Why do we create stored procedures & functions in pl/sql and how are they different?

498


how to install mysql? : Sql dba

575


Can I join the same table twice?

522


What is recursive stored procedure?

590


Which version of sql do I have?

552


Is delete faster than truncate?

537