Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Grouping by multiple columns | Grouping
SQL Basics
セクション 5.  3
single

single

bookGrouping by multiple columns

メニューを表示するにはスワイプしてください

Can we group observations based on multiple columns? For example, we can group all cars by year and engine size and find the most expensive within these.

To group by multiple columns use the same approach as for sorting by multiple columns: just put it within GROUP BY statement separated with a comma. The query for the example above will look like this:

123
SELECT year, enginesize, AVG(price) FROM audi_cars GROUP BY year, enginesize
copy
タスク

スワイプしてコーディングを開始

From the audi_cars table calculate the maximum, average, and minimum price for each model manufactured in different years.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 5.  3
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt