i need department wise top 2 employees salary.which logic
i will use
Answer Posted / shreya
select level,deptno,max(sal)
from emp
where level in (1,2)
connect byy prior sal>sal
group by level,deptno
order by deptno
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between union and union all command?
What is sqlca in powerbuilder?
Can we use loop in sql?
Explain what is sql?
What is keys and its types?
How many types of cursors are available in pl/sql?
what is cursor. write example of it. What are the attributes of cursor.
how to create a test table in your mysql server? : Sql dba
What is exception? What are the types of exceptions?
What is a subquery in sql?
What is the plv (pl/vision) package offers?
Explain what is an index?
Is natural join same as inner join?
Is left join inner or outer by default?
What is sql table?