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

select max(sal)from emp where sal in(select sal from emp minus select max(sal) from emp);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of index in sql?

972


What is rowid in sql?

987


What are the various levels of constraints?

1125


What is primary key and foreign key?

962


What is right join in sql?

1092


what are enums used for in mysql? : Sql dba

1170


How do I count records in sql?

1009


What is a system versioned table?

987


What is the difference between syntax error and runtime error?

1142


What is multiple partition?

968


Write a sql select query that only returns each name only once from a table?

1016


Can sql function call stored procedure?

1025


Can I call a procedure inside a function?

1012


What is a database trigger?

1071


Explain how can you save or place your msg in a table?

1028