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


Find top Nth employee from each department in terms of
salary?

Answers were Sorted based on User's Feedback



Find top Nth employee from each department in terms of salary?..

Answer / khushboo

select top 1 emp_name,emp_sal from employee order by emp_sal
desc

Is This Answer Correct ?    0 Yes 2 No

Find top Nth employee from each department in terms of salary?..

Answer / madhu

select top 1 salary,employee from (table name) group by
department

Is This Answer Correct ?    10 Yes 13 No

Find top Nth employee from each department in terms of salary?..

Answer / suri

select max(m.total_amt),e.emp_name, d.dept_name from
hr_employee_salary_mst m,
hr_employee_mst e, hr_dept_table d
where d.dept_id=e.dept_id
and m.employee_id=e.emp_id
group by d.dept_name,e.emp_name,d.dept_name

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More SQL Server Interview Questions

What are relationships and mention different types of relationships in the dbms

0 Answers  


How extra digits are handled with numeric data type literals?

0 Answers  


How to stop log file growing too big?

0 Answers  


What is the log shipping?

0 Answers  


Where can you add custom error messages to sql server?

0 Answers  


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

0 Answers  


Tell me what is the order in which the sql query is executed?

0 Answers  


What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?

1 Answers  


What is a select query statement in ms sql server?

0 Answers  


What are statistics?

0 Answers  


What is a view in sql?

0 Answers  


What is executereader?

0 Answers  


Categories