Du begär välj id felaktigt utformad men om du verkligen behöver
Du kan beräkna summan i kolumn med hjälp av ett underval
SELECT market, sale, (select sum(sale) as total from my_table) as total
from my_table
om du bara behöver något land, t.ex. FR, Storbritannien 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 så behöver du alltid den totala summan du kan
SELECT market, sale, (select sum(sale) as total
from my_table
) as total
from my_table
here market in ('FR', UK')