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 does trigger mean in slang?

525


what is a tablespace? : Sql dba

560


What is the reports view in oracle sql developer?

539


Is pl sql and postgresql same?

568


Is pl sql different from sql?

530






how to get a list of all tables in a database? : Sql dba

509


State some properties of relational databases?

580


what is 'mysqlcheck'? : Sql dba

573


Describe types of sql statements?

543


How can we make an if statement within a select statement?

539


How do you add a column to a table?

598


Explain autonomous transaction.

632


What is difference between joins and union?

529


what are integrity rules?

568


What is an ndf file?

526