This example
SELECT UnitCode, UnitName, UnitId, UnitParentId
INTO #ResultSet
FROM Units JOIN Parents ON (Units.UnitChildId = Parents.UnitId)
WHERE OrderId = 11 ORDER BY UnitParentId
Will create a temporal table named #ResultSet. This table will be available only on the session where it was created and as long as the session is active.