Temp tables in sql server are used when you are dealing with a performance issue or you want to create indexes on some columns but don't have access to the production data.
You can only access SQL temp tables within the current session. As they stored in the RAM, you will get more performance in terms of speed.
You can create multiple temporary tables in SQL server along with non clustered index and then you can join these tables.
SQL temp tables are very powerful and you have full control on them.
You can drop these temp tables and you can also check the index by using the sql function sp_helpindex For complete courses, you can buy these courses from Udemy on discount using the following links
https://www.udemy.com/course/ssas-tab...
https://www.udemy.com/course/power-qu...
https://www.udemy.com/course/microsof...
https://www.udemy.com/course/power-bi...
https://www.udemy.com/course/learn-al...