Skip to content · ⁨コンテンツへスキップ⁩

Joins with grouping · ⁨グループ化付きジョイン⁩

English

Reports: joins with grouping

The real power comes from combining what you have learned: join two tables, group the joined rows, and summarise each group with an aggregate.

A common report is "how much has each customer spent?" — join customers to their orders, group by customer, and SUM the totals.

日本語

レポート: グループ化付きジョイン

真の力は、これまでに学んだことを組み合わせることで発揮されます。2つのテーブルをジョインし、結合した行をグループ化し、各グループを集計関数で要約することです。

一般的なレポートとして「各顧客はどれだけの金額を消費したか?」があります。顧客とその注文をジョインし、顧客ごとにグループ化して、SUM で合計を算出します。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP