Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql query #1

Open
kiran788786767 opened this issue Sep 26, 2022 · 1 comment
Open

sql query #1

kiran788786767 opened this issue Sep 26, 2022 · 1 comment

Comments

@kiran788786767
Copy link

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.

@nunnanaveen08
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants