Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Complex Assignment Matching | Advanced Join Techniques and Multi-Table Queries
SQL Joins in Depth

bookChallenge: Complex Assignment Matching

Opgave

Swipe to start coding

Write a query that joins the assignments, projects, and departments tables to show assignment details, including the assignment ID, the employee's name, the project name, and the department name.

  • Join the assignments table to the employees table using the employee_id column.
  • Join the assignments table to the projects table using the project_id column.
  • Join the projects table to the departments table using the department_id column.
  • Select the assignment ID, employee name, project name, and department name.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 6
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me a real-world example?

close

bookChallenge: Complex Assignment Matching

Stryg for at vise menuen

Opgave

Swipe to start coding

Write a query that joins the assignments, projects, and departments tables to show assignment details, including the assignment ID, the employee's name, the project name, and the department name.

  • Join the assignments table to the employees table using the employee_id column.
  • Join the assignments table to the projects table using the project_id column.
  • Join the projects table to the departments table using the department_id column.
  • Select the assignment ID, employee name, project name, and department name.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 6
single

single

some-alt