New to the SQL Alert!
I have declared a table variable and doing a standard
Insert into @table
(
columns
)
select (acquired data result)
I am planning to do a yearly data comparison by month (e.g compare data for April of this and last years). Since I don't want to create a separate table with the same structure unless I absolutely have to, here is my question:
Is it possible to insert different datasets into the same temp table as aliases to distinguish between the two?
Like, e.g.
(Insert into @table
(
columns
)
select (acquired data 1 result)) as alias1
and
(Insert into @table
(
columns
)
select (acquired data 2 result)) as alias2