how to find the second highest salary from emp table?

Answer Posted / jat16may

SELECT MAX(SALARY) FROM TABLENAME WHERE SALARY<(SELECT
MAX(SALARY) FROM TABLE NAME

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger in sql and its types?

545


Can we create foreign key without primary key?

545


How can we optimize a sql query?

584


What is execute immediate?

557


What do you mean by dbms? What are its different types?

559






how to include character strings in sql statements? : Sql dba

566


Is a table valued function object?

587


How to use boolean type in select statement?

593


What is the difference between explicit and implicit cursors in oracle?

525


What is record data type?

527


What's the procedure?

502


What do you mean by query optimization?

556


how to show all tables with 'mysql'? : Sql dba

620


Can we insert in sql function?

558


Can pl sql procedure have a return statement?

560