For create temporary table:
Create Table #tablename(columnname datatype,...)
Every thing are almost same as normal table create command except table name. A # symbol add as prefix.
The table available within the scope. And it's better to drop table by
drop table #tablename
after use