ENع
الدرس 05 · SQL

Grouping and aggregates

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

An aggregate function such as COUNT or SUM turns many values into one. Add GROUP BY and the database first sorts the rows into groups, then runs the aggregates once per group, so each group becomes one row of the answer. Follow a café's orders through GROUP BY drink, COUNT(*), SUM(price) and HAVING, and learn why WHERE filters rows but HAVING filters groups.

12 دقيقة9 خطوات5 أسئلةBeginner
شكل 5 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.