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 / jayshree

select max(sal) from table_name where sal not in (select
max(sal) from table_name)

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 numeric function sql?

1070


What is exception? What are the types of exceptions?

1074


What is cursor status?

1193


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1198


Why do we need a foreign key?

1108


What is the difference between sum and count in sql?

993


What happens when a trigger is associated to a view?

920


How many postgresql users are there, worldwide?

1072


What is pl sql commands?

1050


What is the difference between unique and primary key constraints?

1081


Which certification is best for sql?

994


What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql

1010


What is view explain with example?

937


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

1111


Are null values same as that of zero or a blank space?

1035