Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Query for second maximum salary in each in each department

Answer Posted / arvind kumar

select * from employees e where (select count(salary) from
employees where salary >=e.salary)=2;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the 'mysql' command line arguments? : Sql dba

1091


ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..

2451


Explain the difference between 'between' & 'and' operators in sql

948


What is cte sql?

930


What is the requirement of self-join?

1027


Why should I use postgresql?

973


What is a database event trigger?

1086


Is merge a dml statement?

924


What is difference between function and trigger?

972


What is the use of triggers?

982


What is numeric function sql?

988


How to fetch alternate records from a table?

1161


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

978


what is the difference between $message and $$message? : Sql dba

946


Do we need to rebuild index after truncate?

976