I have a select query that is big in terms of number of lines . It is made big by a large sub query it needs. I do not want to see the sub query so often now. I want to scroll over it when further developing my main query. I have Intellisense enabled. I want to be able to collapse my sub-query with a +/- next to it.
The subquery is:
inner join (select Dave.ID, .........) as Dave
on Dave.ID = Mike.ID
Is there anything I can write before and after the above sub-query (Dave) that will fold it so I do not have to see the sub-query (Dave) all the time?