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 get second highest salary in SQL(as/4000

Answer Posted / devi

select sal from (select sal,rank() over(order by sal desc)
as rank from emp) where rank>1 and rank<3

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nosql vs sql?

1123


What operators deal with null?

1031


what is a cursor? : Sql dba

973


What are actual parameters and formal parameters?

1039


What is sqlcontext?

990


What is an example of translating a date into julian format?

1042


What are different sql data types?

958


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

1077


What is over () in sql?

894


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1788


The select into statement is most often used to create backup copies of tables or for archiving records?

1002


What is snowflake sql?

1013


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

993


Is it possible to pass parameters to triggers?

1032


Can we create index on primary key?

916