Challenge: Segment Sales Data
Завдання
Swipe to start coding
Write two SQL queries using the existing sales table to analyze sales performance by product and by customer.
- The first query must return each
product_idalong with the total sales amount for that product. UseSUM(total_amount)and group byproduct_id. - The second query must return each
customer_idalong with the number of orders placed by that customer. UseCOUNT(sale_id)and group bycustomer_id.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me a real-world example?
Чудово!
Completion показник покращився до 5.56
Challenge: Segment Sales Data
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write two SQL queries using the existing sales table to analyze sales performance by product and by customer.
- The first query must return each
product_idalong with the total sales amount for that product. UseSUM(total_amount)and group byproduct_id. - The second query must return each
customer_idalong with the number of orders placed by that customer. UseCOUNT(sale_id)and group bycustomer_id.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 4
single