Create virtual “dummy” Table, for testing something in stydying process, you can make like this:
For using one table many times use temporary table function
;WITH - CTE common table expression
CTE Table
;WITH tablename as ( 0any select script select * from -) select * from tablename
also, you can use CTE temporary tables many times by this ;WITH statement:
please see every steps of codes in my github: