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
Sezione 1. Capitolo 12
single

single

bookChallenge: 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_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

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