Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Complex Assignment Matching | Section
SQL Joins in Depth
Seção 1. Capítulo 12
single

single

bookChallenge: Complex Assignment Matching

Deslize para mostrar o menu

Tarefa

Deslize para começar a programar

Write a SQL query that joins four tables to produce a full assignment report.

Table relationships:

  • assignments.employee_idemployees.employee_id

  • assignments.project_idprojects.project_id

  • projects.department_iddepartments.department_id

  • Start your query from the assignments table

  • Perform 3 consecutive JOINs in the following order:

    1. assignmentsemployees
    2. assignmentsprojects
    3. projectsdepartments
  • Return exactly four columns with these aliases:

    • assignment_id — from assignments
    • employee_name — from employees.name
    • project_name — from projects
    • department_name — from departments
  • Use table.column notation when referencing all columns

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 12
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt