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 / yash goyal

Select slary from
(select salary from empolyees
order by salary desc
where rownum<=&no.)
order by salary Asc
where rownum=1;

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 a data manipulation language?

1078


What are inner and outer joins examples of both?

1010


How is indexing done in search engines?

1023


how to rename an existing column in a table? : Sql dba

1084


What is linq to sql?

1181


What is anonymous block in sql?

1174


How many types of index are there?

1104


What is data type in sql?

1006


What is compiled query?

1089


What is difference between ms sql and mysql?

1016


what is innodb? : Sql dba

1173


What is the syntax to add a record to a table?

1152


Can you have more than one trigger on a table?

1047


Explain the working of primary key?

1155


Is a view faster than a stored procedure?

1013