If DB2 needs a temporay table to store results of a joined table, then it uses a system temporay tablespace, which it selects based on the page size needed. If there is more than one system temporary tablespace for the size needed, then it generally uses them in a round robin fashion.
If a temporay table is not needed, then some other memory heaps are used. DB2 may start out without a temporary table for the join, but if the memory heaps overflow, then a temporary table may be created.