LXLogicExcel
๐Ÿ”ฅ
0
โญ
0
SUM - Sum Aggregate1 / 10
SUM is an aggregate function which calculates the sum of a column. To find the sum of all order totals in the table, try:

SELECT SUM(order_total) FROM orders;
order_idcustomeritemquantityorder_total
1AliceLaptop11200
2BobMouse240
3CarlosMonitor1300
4DianaKeyboard1100
5EvanHeadphones1150

Ctrl+Enter to submit

๐Ÿ”ฅ 0 streak
โญ 0 XP this lesson
All Lessons

SUM - Sum Aggregate - Free SQL Practice Online

Practise SUM - Sum Aggregate with 10 free, interactive SQL exercises. You type real queries into your browser and get instant feedback on every answer - no database setup, no install, and no signup. It is a fast, hands-on way to learn SQL online and build query skills you can use at work.