how to find the second highest salary from emp table?

Answer Posted / satish kumar

Select Top1 salary
from(select Distinct Top2 salary from employee order by salary DESC) a order by salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the different case manipulation functions in sql?

528


What is a trigger word?

506


What is use of term?

614


What is a unique key and primary key and foreign key?

561


what is the difference between where clause and having clause? : Sql dba

527






What is a natural join?

507


What is the difference between view and stored procedure?

486


Why is normalization important?

528


What will you get by the cursor attribute sql%found?

531


What are the different types of constraints?

556


What is a database trigger?

599


Is sql open source?

537


Does view store data in sql?

525


How to add new employee details in an employee_details table with the following details

637


describe mysql connection using mysql binary. : Sql dba

540