Updating multiple tables in sql
You can get started using these free tools using my Guide Though this article uses the Adventure Works database for its examples, I’ve decided to create an example table for use within the database to help better illustrate the examples. Also, let’s initially populate the table with some data using the following INSERT statement: You can learn more about the INSERT statement by reading our article Introduction to the INSERT Statement.The UPDATE statement is used to change column values.The UPDATE statement is capable of updating more than one row. All rows returned via the WHERE clause criteria are updated.Suppose every Sales Person whose ID is less than 10031 worked in Saline.
All the examples for this lesson are based on Microsoft SQL Server Management Studio and the Adventure Works2012 database.The general form to use is: contains the update values; we use joins to do the matching.