Skip to content
Advertisement

How to give names to output tables?

I need to do a JOIN using two ouput-tables (these tables result from previous operations using other tables). I want to give them specific names to reference them. I’ve try ALIAS, AS, INTO, but nothing works. I am new in SQL and I’d really like some help here. My code is the following

I’d like to make a LEFT JOIN between Table 1 and Table 2 on ID_Campaing, but also I would like to give them names,and of course I’d also want to give a name to the output of this JOIN. Any hints?

Advertisement

Answer

You seem so adept with common table expressions, it’s puzzling why you haven’t taken the final step to make the last two into CTE’s:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement