I have a table in SQL Server and I have written some custom query and got the result. Now I want to save the result into a new table. How can I do that? Below is my SQL query. I want to store the result data into a new table.
SELECT
Name, InvoiceNumber, InvoiceDate, Total,
IIF(Name = '', '0', '100') AS Vendor_Recognition,
IIF(InvoiceNumber = '', '0', '100') AS InvoiceNumber_Recognition,
IIF(InvoiceDate = '', '0', '100') AS InvoiceDate_Recognition,
IIF(Total = '', '0', '100') AS Total_Recognition
FROM
Invoice