Sectionย 3. Chapterย 2
single
SUMming values
Swipe to show menu
There is one more function that has to be implemented - function for summing values. For example, we may want to calculate the total revenue for a certain item.
To sum values in column use SUM function followed by column which values you want to sum. For our abstract example,
123SELECT SUM(revenue) FROM sells WHERE item = 'Sofa'
Please note, that
SUMfunction works only with numeric columns.
Task
Swipe to start coding
From the audi_cars table calculate the total tax for all RS4 cars.
Solution
Everything was clear?
Thanks for your feedback!
Sectionย 3. Chapterย 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat