so I have this query:
SELECT SUM(x) AS s, s + 600 AS y FROM table;
But then mysql complained…unknown column ‘s’ in ‘field list’ which I suppose comes from s + 600 expression….
how do I format the query such that I can immediately use the SUM(x) computation alias ‘s’ in the computation that immediately follows it?
try