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

how to find the second highest salary from emp table?

Answer Posted / prasanna

select A.* from employee A where 1=(select count(distinct
B.sal) from employee B where B.sal>A.sal)

Is This Answer Correct ?    63 Yes 71 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we edit a view in sql?

984


What is percent sign in sql?

1283


Which nosql database is best?

975


What are the different types of tables in sql?

1009


Define implicit and explicit cursors.

1145


What is difference between db2 and sql?

1001


What is insert command in sql?

1131


How do you modify a trigger?

928


What is a database? Explain

1112


Which table is left in left join?

1014


What are different types of functions in sql?

1004


What is sqlca in db2?

970


What is the main reason behind using an index?

1018


which tcp/ip port does sql server run on? : Sql dba

1026


what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

1068