Query for second maximum salary in each in each department
Answer Posted / sampath pallerla
select distinct(a.sal) from emp a where 2=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal);
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
what are all types of user defined functions? : Sql dba
Write an sql query to select all records from the table?
Is it possible to pass parameters to triggers?
Differentiate between % rowtype and type record.
Explain what is a database?
What is the location of pre_defined_functions.
Define the select into statement.
What is the primary key?
What is sql engine in oracle?
What is rank function in sql?
how to use in conditions? : Sql dba
Where can I learn sql for free?
Is sql considered coding?
What is the difference between an inner and outer join?
What is a primary key? Explain