I have a select statement that is built out of two select statements that are inner joined
SELECT stuff FROM
(multiple SELECT statements) AS T1
INNER JOIN
(SELECT stuff FROM
(multiple SELECT statements same as T1)) AS T2 ON more stuff
What I did was copy paste T1 select statement, is there a way to give T1 a name that can be recognized in the sub query creating T2? PS Im using MySQL