DECLARE @CountryID int SELECT @CountryID = ID FROM Country WHERE Abbr = 'USA' --load up this country with its states INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Alaska', 'AK'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Alabama', 'AL'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Arizona', 'AZ'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Arkansas', 'AR'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'California', 'CA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Colorado', 'CO'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Connecticut', 'CT'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Delaware', 'DE'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'District of Columbia', 'DC'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Florida', 'FL'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Georgia', 'GA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Hawaii', 'HI'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Idaho', 'ID'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Illinois', 'IL'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Indiana', 'IN'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Iowa', 'IA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Kansas', 'KS'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Kentucky', 'KY'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Louisiana', 'LA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Maine', 'ME'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Maryland', 'MD'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Massachusetts', 'MA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Michigan', 'MI'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Minnesota', 'MN'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Mississippi', 'MS'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Missouri', 'MO'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Montana', 'MT'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Nebraska', 'NE'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Nevada', 'NV'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'New Hampshire', 'NH'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'New Jersey', 'NJ'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'New Mexico', 'NM'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'New York', 'NY'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'North Carolina', 'NC'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'North Dakota', 'ND'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Ohio', 'OH'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Oklahoma', 'OK'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Oregon', 'OR'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Pennsylvania', 'PA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Puerto Rico', 'PR'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Rhode Island', 'RI'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'South Carolina', 'SC'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'South Dakota', 'SD'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Tennessee', 'TN'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Texas', 'TX'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Utah', 'UT'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Vermont', 'VT'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Virginia', 'VA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Washington', 'WA'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'West Virginia', 'WV'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Wisconsin', 'WI'); INSERT INTO [State] (CountryID, [Name], Abbr) VALUES (@CountryID, 'Wyoming', 'WY');