https://www.techmixing.com/2012/01/sql-server-local-temporary-table.html
SQL Server - Local temporary table