Challenge: City-Based Sales Analysis
Uppgift
Swipe to start coding
Write a query to analyze how many sales have occurred in each customer city. Your query should:
- Join the
salesandcustomerstables using thecustomer_idcolumn. - Group the results by the
citycolumn from thecustomerstable. - Count the number of sales for each city.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Fantastiskt!
Completion betyg förbättrat till 5.56
Challenge: City-Based Sales Analysis
Svep för att visa menyn
Uppgift
Swipe to start coding
Write a query to analyze how many sales have occurred in each customer city. Your query should:
- Join the
salesandcustomerstables using thecustomer_idcolumn. - Group the results by the
citycolumn from thecustomerstable. - Count the number of sales for each city.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 4
single