DB Development Question:

How to find the first two highest salaries in deptno in emp table?

DB Development Interview Question
DB Development Interview Question

Answer:

if u want select the second highest salary from the emp
table then u have to write query as

select max(salary) from emp where
salary < ( select max(salary) from emp )


Previous QuestionNext Question
Explain the syntax of named procedure?What is difference between primary key and unique key?