Codington
0 of 8 problems solved • 0%

Exercise prompt

Compare Two Joins

The query below uses the INNER JOIN from module 11. Run it and look for search. Which table contains its name?

Example

SELECT s.name, d.id AS run_id FROM services AS s INNER JOIN deployments AS d ON s.id = d.service_id WHERE s.name IN ('billing', 'search');

Your task

Change the join to LEFT JOIN, keeping services on the left. Show name and the deployment ID as run_id for both billing and search. Look at the value of run_id for the service with no match.

Opening the database…