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 find second highest salary of an employee.

Answer Posted / deepshikha

SELECT MAX (sal)
FROM emp a,
(SELECT MAX (sal) max_sal
FROM emp) abc
WHERE a.sal < abc.max_sal
ORDER BY sal DESC;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the select into statement.

1065


how to dump a table to a file with 'mysqldump'? : Sql dba

1044


Mention what is the function that is used to transfer a pl/sql table log to a database table?

1000


Does execute immediate commit?

1224


What are all the different types of indexes?

1156


Can a select statement fire a trigger?

1173


Which table is left in join?

984


What is sql rowcount?

1035


What are three advantages to using sql?

1028


Why are cursors used?

1124


What sql does db2 use?

987


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

1077


Are null values same as that of zero or a blank space?

1038


Can you have more than one trigger on a table?

1011


How would you reference column values before and after you have inserted and deleted triggers?

1071