Is there a way to select the sum of a column and other columns at the same time in SQL?
Example:
SELECT sum(a) as car,b,c FROM toys
try add GROUP BY
SELECT sum(a) as car,b,c FROM toys GROUP BY b, c
1.4m articles
1.4m replys
5 comments
57.0k users