Using WHERE with text
WHERE can also filter string values.
Imagine you are part of an organization that gives cinematography awards, and you have several international categories. Before you confirm an award for every language listed in your dataset, it may be worth seeing if there are enough films of a specific language to make it a fair competition. If there is only one movie or a significant skew, it may be worth considering a different way of giving international awards.
Let's try this out!
Latihan ini merupakan bagian dari kursus
Intermediate SQL
Instruksi latihan
- Select and count the
languagefield using the aliascount_spanish. - Apply a filter to select only
Spanishfrom thelanguagefield.
Latihan interaktif langsung praktik
Cobalah latihan ini dengan melengkapi kode contoh ini.
-- Count the Spanish-language films
___