Question: Challenge: In the process of preparing your dataset for analysis, you will often need to define PK and FK . One such situation occurs when
Challenge: In the process of preparing your dataset for analysis, you will often need to define PK and FK One such situation occurs when working with state and county data. One table may have Census info and a second table may have area size info. Fortunately the government has realized that they need to have unique identifiers for all kinds of economic analyses. This is called "Federal Information Processing Series Links to an external site." or "FIPS"
TASK :
Get the character state code from the reference data set and combine it with CSVFIPS data and write the columns to SQL Server
Transforms to use: Sort, Merge Join, derived column Result: rows, columns see disclaimer at the top
You are given two data sets both CSV CSVstatesinus Download CSVstatesinus reference data set" and CSVFIPS Download CSVFIPS. These have a :M relationship. You are to create a new column called StateCode and write this combined data to a new table called mygateIDFIPSM in YOUR database with all the columns from CSVFIPS. The state code comes from CSVstatesinus The state NAME is in both files the basis of your join.
TASK : Lookup Merge? Decide after watching both videos
You are given two CSV data sets: CSVcensus Download CSVcensus and CSVFIPS downloaded in TASK Your job is to append the FIPS code column to the data in CSVcensus and write the resulting columns County, state, MHI and FIPSCode to a new table in your database called mygateIDCensusFIPS. Since the county names may not be unique across the US you will have to combine the county name and state name to locate the appropriate FIPS code the basis of your join. Hint: Comparison is case sensitive
You are bound to miss some. Don't worry about that for this assignment. HOWEVER, you are required to analyze the result and explain what problems you ran into
did it get all the codes correctly
Which counties got skipped Why?
How would you fix these
Tip: Remove ALL spaces from county name and state name before JOINing TRIM
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
