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 / mohamed hussain

select salary from
(select salary,Dense_RANK() over (Order by salary desc) as
Level from salary) TMP
where Level=@Level

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you rename a table in sql?

1102


What is trigger and how to use it in sql?

1021


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

1021


Does inner join return duplicate rows?

974


what are integrity rules?

1022


How do you declare a constant?

960


Explian rowid, rownum? What are the psoducolumns we have?

997


What will you get by the cursor attribute sql%notfound?

1057


In pl/sql, what is bulk binding, and when/how would it help performance?

990


How would you reference column values before and after you have inserted and deleted triggers?

1063


What are operators available in sql?

1040


What are sql*plus environment variables?

1093


What is an escape character in sql?

1024


Explain the purpose of %type and %rowtype data types?

928


What is meant by user defined function?

1048