I'm running multiple SELECTs in one query, and they are using the same nested FROM SELECT. The code goes something like this:
SELECT B FROM (SELECT A) DATA;
SELECT C FROM (SELECT A) DATA;
SELECT D FROM (SELECT A) DATA;
SELECT E FROM (SELECT A) DATA
Is there a way to "store" SELECT A (variable? other way?) and use it across this one query or do I need to repeat it every single time? SELECT A is quite large and I'd like to make this query as clean as possible.