Как поместить значение в переменную MySQL
SET variable = (SELECT SUM(tax) FROM taxable_transactions);
Wrong Wolf
SET variable = (SELECT SUM(tax) FROM taxable_transactions);