Here is a very basic look at my table. I have columns 1 and 2 and need to generate column 3. Column 3 is simply the total of the Number column for all Nam
Number
Nam
You just need to CROSS JOIN the SUM() of Number column:
CROSS JOIN
SUM()
SELECT Name, Number, Number * 100 / t.s AS `% of total` FROM mytable CROSS JOIN (SELECT SUM(Number) AS s FROM mytable) t
Demo Here