how to find the second highest salary from emp table?
Answer Posted / bipin
use this query. it works great.
select max(sal) from table_name where sal<(select max(sal)
from table_name)
| Is This Answer Correct ? | 415 Yes | 59 No |
Post New Answer View All Answers
What is a table in a database?
How are functions and procedures called in PL/SQL?
What is the use of & in pl sql?
Is hadoop a nosql?
What is a database trigger?
How to write pl sql program in mysql command prompt?
in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.
what is the command line end user interface - mysql? : Sql dba
Which operator is used in query for pattern matching?
Why having clause is used in sql?
What is crud sql?
What are the sql commands?
Is sql low level language?
How delete a row in sql?
What is pl sql architecture?