You can use WITH
section and there are many ways, but if you really want to select the query as you posted, you can just use
SELECT
T_T.test_col,
T_T.max_test AS max2
FROM (
SELECT
T.test_col,
max(T.text_co) AS max_test
FROM test_table T
) T_T
© 2024 OneMinuteCode. All rights reserved.