What are the situations that temporary tables are used in SQL?