Subquery factoring is also known as a common table expression (CTE). Commonly referred to as the with clause. A CTE is a named temporary result set that exists within the scope of a single statement, and that can be referred to later within that statement, possibly multiple times.
You can specify a subquery in the from clause of a query, which is called an inline view; but if you want to join the ...