For example I have a table like this:
product | quantity | something ------------------------------- abc | 5 | 2 xzy | 5 | 2 asd
it's not the best way to solve this but should do the trick
select product, quantity, something from tableName union select 'sum', sum(quantity), sum(something) from tableName