Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Complex Assignment Matching | Section
SQL Joins in Depth

Challenge: Complex Assignment Matching

Scorri per mostrare il menu

Compito

Scorri per iniziare a programmare

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 assignments table

  • Perform 3 consecutive JOINs in the following order:

    1. assignments → employees
    2. assignments → projects
    3. projects → departments
  • 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

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 12
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt