In my experience, temporary tables are often used to store intermediate calculations in a complex series of CREATE or UPDATE queries that produce some kind of analysis result. An example would be to create pivot tables for an OLAP database.
Temporary tables are also sometimes used to improve performance in certain situations.
source
share