WITHyearly AS SELECT customer_id YEARorder_date AS order_year SUMprice AS yearly_amount FROM Orders GROUP BY customer_id YEARorder_date ORDER BY 1 2 consecutive AS
The SQL query seems to be correct syntactically. However, it is possible that there is an error in the database schema or data that is causing unexpected results.
原文地址: https://www.cveoy.top/t/topic/cHy6 著作权归作者所有。请勿转载和采集!