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

Employee Department MYSQL Creation Issue #216

Open
ashishsme14 opened this issue Jun 17, 2021 · 1 comment
Open

Employee Department MYSQL Creation Issue #216

ashishsme14 opened this issue Jun 17, 2021 · 1 comment

Comments

@ashishsme14
Copy link

We had given task as below attachment -

Employee Issue 1

We written below query which is not working i.e. it does not fetching desire result -

With New Dept_id as (select  x.dpt_code from department x where x.dpt_code not in 
(select e.dpt_id from emplyee e join
employee e where e.dep_id=d.dpt_code))
With New Dept_name as (select  x.dpt_name from department x )
SELECT employee.emp_id, employee.emp_name, employee.hire_date, employee.jon_name, employee.dept_id, New Dept_id, New Dept_name from employee JOIN department on (employee.dep_id=department.dpt_code)
@chaun14
Copy link

chaun14 commented Jun 17, 2021

Seems like you've selected the wrong repository. Please delete your issue if that's an error.

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