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 / vijay shegokar

select * from employee where salary=(select max(salary) from
employee where salary not in (select max(salary) from
employee));

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql built in functions?

893


What are % type and % rowtype?

977


How to select all records from the table?

1066


What is rownum in sql?

962


What is a temp table?

948


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1070


How would you convert date into julian date format?

946


What is procedure function?

981


What is a field in a database?

1002


How do I clear the screen in sql plus?

979


What is cost in sql execution plan?

897


Mention what is the plv (pl/vision) package offers?

1055


what is bcp? When is it used?

1042


What does cursor do in sql?

969


How can I delete duplicate rows?

963