diff --git a/Create__ElectricVehicles_Clean.sql b/Create__ElectricVehicles_Clean.sql index 67612f2..a439675 100644 --- a/Create__ElectricVehicles_Clean.sql +++ b/Create__ElectricVehicles_Clean.sql @@ -9,10 +9,10 @@ BEGIN County, City, State, - PostalCode, + 12346 as PostalCode, REPLACE(ModelYear, '','', '''') as ModelYear, Make, - REPLACE(Model, '' '', '''') as Model, + Model, ElectricVehicleType, CAFVEligibility, ElectricRange, @@ -24,7 +24,7 @@ BEGIN CensusTract INTO ' + QUOTENAME(@database) + '.dbo.ElectricVehicles_Clean FROM ' + QUOTENAME(@database) + '.dbo.ElectricVehicles - WHERE 1=1 ' + @ExcludeClause; + WHERE 1=1 and PostalCode != 98953 ' + @ExcludeClause; EXECUTE sp_executesql @Sql, N'@ExcludeClause nvarchar(30)', @ExcludeClause; end;