Skip to content
Manual Crono SQL

sum

La función sum devuelve la suma de los valores de un grupo, ignorando los valores NULL.

select
products.product_name,
sum(order_details.unit_price * order_details.quantity) total_ventas
from staging.order_details
inner join staging.products using product_id
group by all;

Was this page helpful?

We are here to help. If you have any problem or question, open a GitHub issue and we will get back to you as soon as possible.

Create a GitHub issue