Check out example codes for "select into temp table". It will help you in understanding the concepts better.

Code Example 1

SELECT t.col1, t.col2...
INTO #temp
FROM table1 AS t

Code Example 2

SELECT * 
INTO #temp
FROM (
    SELECT col1, col2
    FROM table1
) AS x

Learn ReactJs, React Native from akashmittal.com