I have query like this
SELECT * 
FROM Tabel1
JOIN Table2 ON ...
JOIN 
    (SELECT * 
     FROM Table3 
     JOIN Table4 ON ....) as X ON Table2.Col1 = X.Col1
And my manager instructed me not use this and asked me to move the whole "X part to a #temp" table and make a join with #temp. 
I can't understand what the problem with above code is ...
 
    