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
2.1m questions
2.1m answers
60 comments
57.0k users