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
step
Write the SQL to create the structure and copy the data from the following table to the suggested destination:
Source:
Database: AdventureWorks
Schema: Raj
Table: FIPSlist
Destination:
Database: DMmyGateID
Schema: default dbo
Table: FIPSlist
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
Use SQL to add a column to the newly created FIPSlist table TASK with the following characteristics:
Name: Statecode
Type: nchar
Nulls: allowed
step
You must replace the nulls in the "Statecode" column of the FIPSlist 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 databasetable
Source:
Database: AdventureWorks
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
