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 / 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


Please Help Members By Posting Answers For Below Questions

The select into statement is most often used to create backup copies of tables or for archiving records?

1068


Can you rollback after commit?

993


what are integrity rules?

1035


What is the difference between drop and truncate commands?

1062


What are commit, rollback, and savepoint?

999


What are joins in sql?

1048


What is where clause in sql?

1043


Which one is better subquery or joins?

1065


What is the difference between microsoft sql and mysql?

967


can a stored procedure call itself or recursive stored procedure? : Sql dba

1033


What is the usage of sql functions?

1147


What is oracle sql called?

925


What is cross join example?

1012


How do you declare a constant?

962


Is sql a oracle?

982