Loading plan…
SELECT
TOP 100
i_brand_id AS brand_id,
i_brand AS brand,
SUM(ss_ext_sales_price) AS ext_price
FROM date_dim, store_sales, item
WHERE
d_date_sk = ss_sold_date_sk
AND ss_item_sk = i_item_sk
AND i_manager_id = 54
AND d_moy = 12
AND d_year = 1999
GROUP BY
i_brand,
i_brand_id
ORDER BY
ext_price DESC,
i_brand_id;
Step details
Loading plan…
Green: scan · yellow: join · purple: row movement. Rows and costs are optimiser estimates; costs use model units.