我有一个查询代码,它给我的结果,但我想求和相同的行结果。我做不到,有什么方法可以做到吗?SELECT cam_1, cam1aciklama, en_x, boy_y, SUM(adet_z) as adet_z, SUM(toplam_m2) as toplamm2 GROUP BY cam_1, en_x, boy_y, cam1aciklama
The sum of these multiples is 23.Find the sum of all the multiples of 3 or 5 below 1000.f_multiple multiples current limit factor
| (current]) (current + 1) limit factor
如何获取UNION ALL查询中所有行的和。我试图获得每个UNION表的sum列,以及查询执行后的结果和和。$select = $db->prepare("SELECT SUM(money) AS cash FROM table1 WHERE money > 0 GROUP BY idUNION ALL
SELECT SUM(payment) AS cash FROM table2