SQL pattern

Query performance & plans

7 problems in this pattern, climbing easy → medium → hard. Pick wherever you're calibrated.