how to find the second highest salary from emp table?

Answer Posted / kishor

select max(salary ) from employee
where
sal<(select max(salary)from employee)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is union? : Sql dba

586


What is pragma in sql?

624


What are different sql data types?

513


Why is %isopen always false for an implicit cursor?

570


What is difference between sql and oracle?

568






Can instead of triggers be used to fire once for each statement on a view?

541


How do you write an index?

527


Can pl sql procedure have a return statement?

552


What is information schema in sql?

584


Can you join views in sql?

544


Is id a reserved word in sql?

667


What is pl/sql table? Why it is used?

566


what is the difference between char_length and length? : Sql dba

574


Can a foreign key be null?

593


Is t sql a programming language?

539