Solution: Connect Two Tables
We'll cover the following...
We'll cover the following...
Query
SELECT s.id, s.name, g.score AS math_gradeFROM students sLEFT JOIN grades gON s.id = g.student_id AND g.subject = 'Math';
Explanation
This query shows each student along with their Math grade (if available). ...