SQL Assignment
SQL Assignment
Emp
Dept
Write queries to
find 3rd highest salary (using Analytical function and without analytical function)
find highest paid employee of each department
find the top 3 salaries (using Analytical function and without analytical function)
find the last 3 rows
find 5th,6th,7th row (using Analytical function and without analytical function)
find the 9th row
find employees of those dept in which more than 2 employees are working
find employees who earns more than the avg. salary of their department
find employees who have no subordinates
if sal>1000 then display thousand , if sal is between 1000 and 2000 then display
2thousnand,
if sal is between 3000 and 4000 then display 3thousand else display above
find the difference between employee's salary and average salary in their department