Question: please need to use JOIN and one more aggregation Question 2: Which city has the best customers? We would like to throw a promotional Music
please need to use JOIN and one
more aggregation
Question 2: Which city has the best customers? We would like to throw a promotional Music Festival in the city we made the most money. Write a query that returns the 1 city that has the highest sum of invoice totals. Return both the city name and the sum of all invoice totals. Check Your Solution The top city for Invoice dollars was Prague with an amount of 90.24. Artist Album Albumld Artistid Name MediaType MediaTypeld Name Title Artistid Track Trackld Name Albumid Media Typeld Genreld Composer Milliseconds Bytes UnitPrice Playlist Playlistld Name Playlist Track Playlistld Trackld Genre Genreld Name InvoiceLine InvoiceLineld Invoiceld Trackld UnitPrice Quantity Employee Employeeld Last Name FirstName Title ReportsTo Birth Date HireDate Address City State Country PostalCode Phone Fax Customer Customerld FirstName LastName Company Address City State Country PostalCode Phone Fax Email SupportRepld Invoice Invoiceld Customerld InvoiceDate BillingAddress Billing City BillingState Billing Country Billing PostalCode Total Email
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
