🎯 Few days left this month Support SQLTest.online and help us keep SQL practice free for everyone. Donate today →
SQL code copied to buffer
Task 98:

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