I can do that:
SELECT
1 AS one,
2 AS two,
1 + 2 AS three;
But I would like to do that:
SELECT
1 AS one,
2 AS two,
one + two AS three;
Is it possible?
You can do this:
SELECT one, two, (one+two) as three
FROM
(
SELECT
1 AS one
2 AS two
) t;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With