Slow query with join - works fast as individual queries

后端 未结 0 1934
后悔当初
后悔当初 2020-12-17 18:00
SELECT
  *,
  SUM(TCV) AS sales,
  current_sales - SUM(TCV) AS difference
FROM
  `sales`
  LEFT JOIN
    (SELECT
      customerKey AS customerID,
      SUM(TCV) AS c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题