I wanna put the results from sql query into a table but if i do SELECT columns names INTO NEWTABLE(which is not created), its good for one time but when i run that query again, it says table already exists. All i am doing is results from that query into the newtable and i am gonna run it every week so it should not give me the error: table already exists.
For Example : i wanna put Following query results into a Newtable EmployeeDetails and i am gonna run it every week.
select a.Name, b.Id
from Database1 a left join
Database2 b
ON a.Id = b.Id