セクション 5. 章 5
single
HAVING some conditions
メニューを表示するにはスワイプしてください
What if we want to filter grouped observations based on some condition? For example, we want to extract only those models available with Hybrid fuel types.
You can do it by grouping firstly by model, and then by fuel type filtered by condition on fueltype.
1234SELECT model FROM audi_cars GROUP BY model, fueltype HAVING fueltype = 'Hybrid'
Please note, that you can use all the operators learned in the second section within
HAVINGstatement.
タスク
スワイプしてコーディングを開始
From the audi_cars table extract all the models available with Automatic transmission.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 5. 章 5
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください