Keep SQLtest alive: Help cover this month's $100 server costs to keep all lessons and the SQL playground online. Support the project →
SQL code copied to buffer
Task 135:

Films in Every Language in Every Store

MySQL
The chain wants to see which languages its stores have films in. For every store and every language from the language table, count the distinct films in that language in the store's inventory. A store–language pair without films must be shown with 0.
Output columns:
- store_id
- language - the language name
- films - the number of films

Sort the result by store_id, then by language.
Expected result Columns: 3 · Rows: 12
store_id language films

Sample rows open after wrong checks: 0 of 2

Write your query below and click "Check it!". Tables are described in the right pane.

Tutorial
The query result will appear here. Ctrl+Enter - Run query