Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Update and Create new SQL Tables

$
0
0

Received this problem from a client and would love support.

Let's assume after you make a copy of the Vendors table as Vendors2, but there was a new vendor added (vendor ID: BRE02) to Vendors afterwards. You would prefer not to delete or get rid of the table, but would like to simply pull over the vendor that was added.  (Note:BRE02 may already be in the Vendors2 table, but for the problem, assume it isnt')

I have to use an INSERT SELECT.

Can someone help me write the SQL statement to accomplish this.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>