Last answered:

16 Nov 2022

Posted on:

14 Nov 2022

0

Two tables or Three tables?

It seems that three tables were used in the video: employees, dept_manager and dept_emp.
Both dept_manager and dept_emp has same column names.
In my query I used employees and dept_emp tables
(SELECT
                    emp_no
                FROM
                  dept_emp de        <--- Here I didn't used dept_manager
                WHERE
                    emp_no = 110022) AS manager_ID

1 answers ( 0 marked as helpful)
Instructor
Posted on:

16 Nov 2022

1

Hi Amy!
Thanks for reaching out.

In this particular case you can use the dept_emp table instead of the dept_manager table. Your solution is fine.

Hope this helps.
Best,
Tsvetelin

Submit an answer