0
如何在laravel上進行格式查詢如果我有這樣的sql查詢?如何在這種情況下使用多個SUM
SELECT category,
SUM(IF(group='core',weight,0))/SUM(IF(group='core',1,0)),
SUM(IF(group='secondary',weight,0))/SUM(IF(group='secondary',1,0))
FROM view
JOIN sub_category USING (id_sub_category)
JOIN category USING (id_category)
JOIN gap ON difference = (result-result_sub_category)
由於之前