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...

Write a query to find second highest salary of an employee.

Answer Posted / versaites

select top 1 emp_total_sal,emp_name from (
select top 2 emp_total_sal,emp_name from employee_table
ORDER BY emp_total_sal DESC) a
ORDER BY emp_total_sal ASC

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do we use triggers?

1058


how many sql ddl commands are supported by 'mysql'? : Sql dba

1000


Explain how exception handling is done in advance pl/sql?

985


What is structural independence and why is it important?

1015


How does index help in query performance?

1013


What is row_number () in sql?

963


What is difference between function and trigger?

1022


What are triggers and its types?

1041


What can sql server reporting services do?

1095


What is a sql trace file?

1010


What is sql entity?

1075


Is sql microsoft?

1030


What is memory optimized table?

1030


Explain ddl statements in pl/sql?

993


What are the disadvantages of file system?

1236