Po prostu zapakuj ponownie użyty alias za pomocą (SELECT alias)
:
SELECT 10 AS my_num,
(SELECT my_num) * 5 AS another_number
FROM table
Po prostu zapakuj ponownie użyty alias za pomocą (SELECT alias)
:
SELECT 10 AS my_num,
(SELECT my_num) * 5 AS another_number
FROM table