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

how to shutdown mysql server? : Sql dba

1147


What is a full join sql?

1105


how to run 'mysql' commands from a batch file? : Sql dba

1171


What do you mean by table in sql?

1045


What does select top 1 do in sql?

1142


what is data control language? : Sql dba

1068


What is the difference between having clause and where clause?

1116


how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba

1245


How do I remove duplicates in two columns?

1150


How many sql statements are used?

1072


How to write a query to show the details of a student from students table whose

1063


Does truncate free space?

1065


What is use of term?

1128


Is drop table faster than truncate?

1051


how is exception handling handled in mysql? : Sql dba

1132