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
SUM
function works only with numeric columns.
Swipe to start coding
From the audi_cars
table calculate the total tax
for all RS4 cars.
Oplossing
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 2.63Awesome!
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
SUM
function works only with numeric columns.
Swipe to start coding
From the audi_cars
table calculate the total tax
for all RS4 cars.
Oplossing
Bedankt voor je feedback!
single
Awesome!
Completion rate improved to 2.63
SUMming values
Veeg om het menu te tonen
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
SUM
function works only with numeric columns.
Swipe to start coding
From the audi_cars
table calculate the total tax
for all RS4 cars.
Oplossing
Bedankt voor je feedback!