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

select salary from emp e where &n-1=(select count(*) from
emp where salary>e.salary);

Is This Answer Correct ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to rename a table?

1074


What is rank function in sql?

1070


what is an alias command? : Sql dba

1170


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1247


How do I audit the sql sent to the server?

1057


Can we change the table name in sql?

1000


What is procedure in pl sql?

1087


What is a schema? How is it useful in sql servers?

1174


How does sql store data?

959


What are the types of variables use in pl sql?

1089


Which command is used to delete a trigger?

1404


Why do we need a foreign key?

1166


Cite the differences between execution of triggers and stored procedures?

1138


Why use subqueries instead of joins?

1133


What are instead of triggers?

1099