Section 1. Chapitre 12
single
Challenge: Complex Assignment Matching
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
Write a SQL query that joins four tables to produce a full assignment report.
Table relationships:
-
assignments.employee_id→employees.employee_id -
assignments.project_id→projects.project_id -
projects.department_id→departments.department_id -
Start your query from the
assignmentstable -
Perform 3 consecutive
JOINs in the following order:assignments→employeesassignments→projectsprojects→departments
-
Return exactly four columns with these aliases:
assignment_id— fromassignmentsemployee_name— fromemployees.nameproject_name— fromprojectsdepartment_name— fromdepartments
-
Use
table.columnnotation when referencing all columns
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 12
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion