Skip to content
Advertisement

Putting the results of a query into new table in SQL Server

I want to insert query results into new table is there any way I can make changes in code so that it gets stored in a table.

My query:

Advertisement

Answer

You can do it as it will create a new table and insert the records into that table. If you have already created table then you can give name and individual columns also for both insertion and selection.

For using order by clause you can try something like this.

You can learn in detail about INTO Clause Here

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