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

find the third highest salary?

Answer Posted / chandra sekhar

SELECT * FROM EMP e
where 3=(select count(*) from emp
where e.sal<=sal)

Using this correlated subquery we can easily get any one

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why sql query is slow?

929


How many row comparison operators are used while working with a subquery?

974


What is an ndf file?

926


what is the use of friend function? : Sql dba

971


What is difference between stored function and application function?

1102


What is t sql in sql server?

1001


What is the difference between joins?

975


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1383


Is pl sql useful?

931


Can we edit a view in sql?

925


Why we use joins in sql?

924


Can a key be both primary and foreign?

944


Name the different types of indexes in sql and define them.

1074


Explain mutating table error.

1130


What is the requirement of self-join?

1026