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 / om patel

select (distinct(a.sal) from emp e where rownum=&N(select
count(distinct(b.sal)) from emp b where a.sal<=b.sal)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data definition language?

1081


What is sql query limit?

960


What is sql*loader and what is it used for?

1121


How to use distinct and count in sql query? Explain

1000


How do we use distinct statement? What is its use?

1013


How to write a query to show the details of a student from students table whose

982


What type of database is sql?

1016


What are triggers and its uses?

1033


What is a full join sql?

1035


Is sql dba a good career? : SQL DBA

975


Explain normalization and what are the advantages of it?

938


how can you see all indexes defined for a table? : Sql dba

976


What is dbo in sql?

941


How to run sql commands in sql*plus?

1157


Explain spool.

1161