# MAGIC SELECT customer_id , SUM(total_amount) AS total_spent FROM fact_orders Group BY customer_id ORDER BY total_spent DESC ; ...
create view v2 as select count(order_id) from orders; create view v3 as select distinct count(customer_id) from customers; create view v4 as select avg(rating) from ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results