SUMming values
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.
Swipe to start coding
From the audi_cars table calculate the total tax for all RS4 cars.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.63
SUMming values
Свайпніть щоб показати меню
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.
Swipe to start coding
From the audi_cars table calculate the total tax for all RS4 cars.
Рішення
Дякуємо за ваш відгук!
single