SyntaxFix
Write A Post
Hire A Developer
Questions
You have to define a table alias for a derived table in SQL Server:
SELECT x.* INTO [NEW_TABLE] FROM (SELECT * FROM TABLE1 UNION SELECT * FROM TABLE2) x
"x" is the table alias in this example.