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 does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

1008


What are sql built in functions?

944


Can we use threading in pl/sql?

1043


When is the update_statistics command used?

1127


Enlist some predefined exceptions?

1065


What is difference between db2 and sql?

1007


What is native sql query?

1027


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

1036


What is the purpose of the sql select top clause?

1118


what is the difference between rownum pseudo column and row_number() function? : Sql dba

1088


What is the starting oracle error number?

1061


What are procedures used for?

991


What is the most restrictive isolation level? : Transact sql

1087


How do you write an index?

974


What is procedure and function in sql?

1003