i need department wise top 2 employees salary.which logic
i will use

Answer Posted / ethayan

select foracid,clr_bal_amt from (select
foracid,clr_bal_amt,rank() over (order by clr_bal_amt desc
nulls last) as ranking
from tbaadm.gam order by a,clr_bal_amt nulls last)
where ranking=2

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is column?

720


Is json a nosql?

723


Can we call procedure in select statement?

732


Write a query to find the names of users that begin with "um" in sql?

703


how many groups of data types? : Sql dba

725






What are different categories of sql commands?

808


What is microsoft t sql?

677


how do you control the max size of a heap table? : Sql dba

702


How to install oracle sql developer?

770


What is transaction control language (tcl)?

848


Explain the significance of the & and && operators in pl sql.

747


How do I view a sql trace file?

756


How do I find sql profiler?

683


What does cursor do in sql?

712


What is the clause we need to add in function body to return variable?

760