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.
Solution
Merci pour vos commentaires !
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 2.63
SUMming values
Glissez pour afficher le 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.
Swipe to start coding
From the audi_cars table calculate the total tax for all RS4 cars.
Solution
Merci pour vos commentaires !
single