Skip to content · ⁨ข้ามไปยังเนื้อหา⁩
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.

ไทย

รายงาน: การ join พร้อมการ grouping

พลังที่แท้จริงมาจากการรวมสิ่งที่คุณเรียนรู้: join ตารางสองตาราง, group แถวที่ join แล้ว และ สรุป แต่ละกลุ่มด้วยฟังก์ชัน aggregate

รายงานที่พบบ่อยคือ "ลูกค้าแต่ละคนใช้จ่ายไปเท่าไหร่?" — join ลูกค้าเข้ากับคำสั่งซื้อ их, group ตามลูกค้า และ SUM ผลรวมทั้งหมด

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP