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 / arjunraj

aa means table-alias name
bb means table-alisa name

select * from emp aa where 2=(select count(distinct empsalary) from emp bb where aa.empsalary<=bb.empsalary)

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 clustered index in sql?

1096


What are sql functions? Describe the different types of sql functions?

1209


What is keys and its types?

1120


Can we have two clustered index on a table?

1077


How do I create an index in word?

1073


What is primary key sql?

1107


Why is sql important?

1169


What is the difference between functions, procedures, and packages in pl/sql?

1090


how to include comments in sql statements? : Sql dba

999


How can we solve sql error: ora-00904: invalid identifier?

1292


What are dml commands?

1070


What is graph sql?

1039


what are all types of user defined functions? : Sql dba

1083


what is the different between now() and current_date()? : Sql dba

1070


What is function and procedure in pl sql?

1114