Last answered:

24 Jun 2024

Posted on:

18 Jun 2024

0

But I do it little bit differently

#Select all managers' first and last name, hire date, job title, start date, and department name.


select 
 dm.emp_no,
    e.first_name,
 e.last_name,
    e.hire_date,
    t.title,
    dm.from_date,
    d.dept_name
FROM 
employees e
 JOIN 
 dept_manager dm ON e.emp_no = dm.emp_no
 JOIN 
 departments d ON dm.dept_no = d.dept_no 
 JOIN 
 titles t ON t.emp_no = e.emp_no
WHERE 
t.title = "Manager";

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

24 Jun 2024

0

Hi Aniruddha!
Thanks for reaching out.


Your query is valid. Your approach is slightly different but the query works fine.


Hope this helps.
Best,
Tsvetelin

Submit an answer