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 get second highest salary in SQL(as/4000

Answer Posted / sachin

select max(sal) from employees
where salary < (select max(sal) from employees);

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the most important ddl statements in sql?

1117


What are pl sql data types?

1017


explain the difference between delete , truncate and drop commands? : Sql dba

1097


how to enter binary numbers in sql statements? : Sql dba

978


Explain the methods used to protect source code of pl/sql.

1023


How to get each name only once from an employee table?

1116


How is debugging done?

984


What does the hierarchical profiler does?

1062


What is constant in pl sql?

1026


What is sql architecture?

1056


How to find 3rd highest salary of an employee from the employee table in sql?

1083


how would you enter characters as hex numbers? : Sql dba

986


How to avoid duplicate records in a query?

1009


How do you delete duplicates in sql query using rowid?

949


What are inner and outer joins examples of both?

965