In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
CREATE INDEX last7daysofsales_idx_businessdate_location ON Last7DaysOfSales (BusinessDate,Location);
SELECT
Last7DaysOfSales.BusinessDate,
Last7DaysOfSales.Location,
SUM(Last7DaysOfSales.Sales)
FROM
Last7DaysOfSales
GROUP BY
Last7DaysOfSales.BusinessDate,
Last7DaysOfSales.Location