w3resource-SQL-Exercises icon indicating copy to clipboard operation
w3resource-SQL-Exercises copied to clipboard

sql query

Open kiran788786767 opened this issue 3 years ago • 1 comments
trafficstars

Return the employee that have salary that is not in the range between the minimum salary and maximum salary of their job. For example you need to return Adam’s if their salary is 6000 and they work a. job that has Min_salary 7000 and Max_salary 10000.

kiran788786767 avatar Sep 26 '22 17:09 kiran788786767

/* 5. Write a query to display the employee name (first name and last name), employee id and salary of all employees who report to Payam. */ SELECT EMPLOYEE_ID, CONCAT(FIRST_NAME, " ", LAST_NAME) AS EMPLOYEE_NAME, SALARY, MANAGER_ID FROM EMPLOYEES WHERE MANAGER_ID IN (SELECT MANAGER_ID FROM EMPLOYEES WHERE FIRST_NAME= "Payam"); IN THE SOLUTION instead of manager_id considered employee_id which is not driving solution.................

nunnanaveen08 avatar Mar 23 '24 10:03 nunnanaveen08