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 / hemanth kumar

select salary from employees where rowid=(select rowid from
employees where rownum<=2
minus
select rowid from employees where rownum<2)
order by salary

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 an alias command? : Sql dba

1112


What does varchar include?

948


what are the join types in tsql? : Transact sql

1064


define sql delete statement ? : Sql dba

1018


Can a table contain multiple primary key’s?

1098


Define sql delete statement.

1014


What is the usage of the distinct keyword?

1220


how do you know if your mysql server is alive? : Sql dba

1078


How many sql commands are there?

1114


Which join condition can be specified using on clause?

952


how to create a test table in your mysql server? : Sql dba

1008


What is varchar data type in sql?

1083


is it possible to pass an object or table to a procedure as an argument?

1135


What is full join in sql?

991


Which is better trigger or stored procedure?

950