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

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / sandip

SELECT MAX(SAL) FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);

The correct one is.......

SELECT MAX(SAL) as SAL FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rtm stands for?

1092


What is sql profiling in oracle?

1056


define data blocks ? : Sql dba

975


How do I run a pl sql program?

1122


What operators deal with null?

1097


What is PL/SQL Records?

1181


What are few of the schema objects that are created using PL/SQL?

1027


How are sql commands classified?

1081


is mysql query is case sensitive? : Sql dba

1089


What does an inner join do?

1175


What is the difference between a primary key and a unique key?

1050


How is a PL/SQL code compiled?

1220


What is %type in sql?

961


Which join is like inner join?

1018


How do I remove duplicates in two columns?

1052