Cukup bungkus alias yang digunakan kembali dengan (SELECT alias)
:
SELECT 10 AS my_num,
(SELECT my_num) * 5 AS another_number
FROM table
Cukup bungkus alias yang digunakan kembali dengan (SELECT alias)
:
SELECT 10 AS my_num,
(SELECT my_num) * 5 AS another_number
FROM table