Du anmoder om at vælge id forkert designet, men hvis du virkelig har brug for
Du kan beregne summen i kolonne ved hjælp af et undervalg
SELECT market, sale, (select sum(sale) as total from my_table) as total
from my_table
hvis du kun har brug for et land, f.eks. FR, UK, kan du
SELECT market, sale, (select sum(sale) as total
from my_table
where market in ('FR', 'UK')) as total
from my_table
here market in ('FR', 'UK')
eller du har altid brug for den samlede sum, du kan
SELECT market, sale, (select sum(sale) as total
from my_table
) as total
from my_table
here market in ('FR', UK')