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 the difference between an inner and outer join?

1019


Which version of sql do I have?

1063


What does stand for in sql?

978


Why does sql need a server?

1045


What is not in sql?

952


Where are my tempfiles, I don't see them in v$datafile or dba_data_file?

1003


discuss about myisam index statistics collection. : Sql dba

953


How many types of cursors supported in pl/sql?

1196


Explain alias in sql?

1053


Can we use two order by clause in query?

969


Is not null in sql?

1000


Can you have more than one trigger on a table?

1003


What is group function in sql?

1026


Enlist the data types that can be used in pl/sql?

1073


What is crud sql?

990