Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Complex Assignment Matching | Section
SQL Joins in Depth
Osio 1. Luku 12
single

single

bookChallenge: Complex Assignment Matching

Pyyhkäise näyttääksesi valikon

Tehtävä

Pyyhkäise aloittaaksesi koodauksen

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

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 12
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt