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 calcuate the second highest salary of he employee

Answer Posted / shailesh

select sal from emp where sal=(select max(sal) from emp
where sal<(select max(sal) from emp);

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of double ampersand (&&) in sql queries? Give an example

1082


Why is the cursor important?

979


What is the difference between microsoft sql and mysql?

921


What is the basic form of sql query?

881


What is character functions?

1017


What does dml mean?

930


How to select random rows from a table?

1023


What is sqlerrm?

883


Can triggers stop a dml statement from executing on a table?

1027


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

1095


Can you have a foreign key without a primary key?

902


What is difference between nchar and nvarchar?

958


What is union?

1085


How will you distinguish a global variable with a local variable in pl/sql?

1093


How to create an array in pl/sql?

1015