Question: step 1 Write the SQL to create the structure and copy the data from the following table to the suggested destination: Source: Database: AdventureWorks 2

step1
Write the SQL to create the structure and copy the data from the following table to the suggested destination:
Source:
Database: AdventureWorks 2019
Schema: Raj
Table: FIPS_list
Destination:
Database: DM_{myGateID
Schema: default (dbo)
Table: FIPS_list
Columns: All
Once this is copied, write the SQL to retrieve all the data from the NEWLY created (destination) table. You will now have two SQL statements in the query window.
step 2
Use SQL to add a column to the newly created FIPS_list table (TASK 1) with the following characteristics:
Name: State_code
Type: nchar(2)
Nulls: allowed
step 3
You must replace the nulls in the "State_code" column of the FIPS_list table in your database with data available at the following DB source. That is, the state code for Alabama is 'AL', Kentucky is 'KY' etc. All of these codes are available in the 'abbr' column of the following database/table
Source:
Database: AdventureWorks 2019
Schema: Raj
Table: StateInfo
The text shows how this is done with SUBQUERY first and JOIN later. You can use either approach

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!