I have a query like this:
SELECT sum( Premium ) AS soweto
FROM production
WHERE `Agent Code`
LIKE '%GB01%'
UNION
SELECT sum( `Premium` ) AS `NW meretele`
FROM production
WHERE `Agent Code`
LIKE '%WW02%'
however it returns the results in one column, I want to return in two columns with the one column being 'Soweto' and the next column being 'NW meretele'
thanks
SELECT sum( Premium ) AS soweto
FROM production
WHERE `Agent Code`
LIKE '%GB01%'
UNION
SELECT sum( `Premium` ) AS `NW meretele`
FROM production
WHERE `Agent Code`
LIKE '%WW02%'
however it returns the results in one column, I want to return in two columns with the one column being 'Soweto' and the next column being 'NW meretele'
thanks