how to get second highest salary in SQL(as/4000

Answer Posted / sachin

select max(sal) from employees
where salary < (select max(sal) from employees);

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we go for stored procedures?

509


Does user triggers have entry for trigger with compilation errors?

594


How can I see all tables in sql?

542


Explain what is rdbms?

580


Is truncate ddl or dml?

541






What are different joins used in sql?

548


What are types of joins?

532


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

525


Is primary key is clustered index?

527


what is the syntax used for partition in tsql? : Transact sql

536


What type of join is sql join?

529


What is a left inner join?

535


What is a trigger in sql?

634


Which certification is best for sql?

534


What is the life of an sql statement?

523