Permalink
Browse files

Refactor the repository.

  • Loading branch information...
1 parent 8bf15f6 commit a8547ddd29a993187ae254ae0427c358f2bd33a3 @atogle atogle committed Apr 19, 2011
@@ -1,5 +1,105 @@
-table_name = "census"
-stage_name = "pt1_staging"
+geo_cols = [{"id"=>"FILEID", "type"=>"Text", "len"=>6},
+ {"id"=>"STUSAB", "type"=>"Text", "len"=>2},
+ {"id"=>"SUMLEV", "type"=>"Text", "len"=>3},
+ {"id"=>"GEOCOMP", "type"=>"Text", "len"=>2},
+ {"id"=>"CHARITER", "type"=>"Text", "len"=>3},
+ {"id"=>"CIFSN", "type"=>"Text", "len"=>2},
+ {"id"=>"LOGRECNO", "type"=>"Text", "len"=>7},
+ {"id"=>"REGION", "type"=>"Text", "len"=>1},
+ {"id"=>"DIVISION", "type"=>"Text", "len"=>1},
+ {"id"=>"STATE", "type"=>"Text", "len"=>2},
+ {"id"=>"COUNTY", "type"=>"Text", "len"=>3},
+ {"id"=>"COUNTYCC", "type"=>"Text", "len"=>2},
+ {"id"=>"COUNTYSC", "type"=>"Text", "len"=>2},
+ {"id"=>"COUSUB", "type"=>"Text", "len"=>5},
+ {"id"=>"COUSUBCC", "type"=>"Text", "len"=>2},
+ {"id"=>"COUSUBSC", "type"=>"Text", "len"=>2},
+ {"id"=>"PLACE", "type"=>"Text", "len"=>5},
+ {"id"=>"PLACECC", "type"=>"Text", "len"=>2},
+ {"id"=>"PLACESC", "type"=>"Text", "len"=>2},
+ {"id"=>"TRACT", "type"=>"Text", "len"=>6},
+ {"id"=>"BLKGRP", "type"=>"Text", "len"=>1},
+ {"id"=>"BLOCK", "type"=>"Text", "len"=>4},
+ {"id"=>"IUC", "type"=>"Text", "len"=>2},
+ {"id"=>"CONCIT", "type"=>"Text", "len"=>5},
+ {"id"=>"CONCITCC", "type"=>"Text", "len"=>2},
+ {"id"=>"CONCITSC", "type"=>"Text", "len"=>2},
+ {"id"=>"AIANHH", "type"=>"Text", "len"=>4},
+ {"id"=>"AIANHHFP", "type"=>"Text", "len"=>5},
+ {"id"=>"AIANHHCC", "type"=>"Text", "len"=>2},
+ {"id"=>"AIHHTLI", "type"=>"Text", "len"=>1},
+ {"id"=>"AITSCE", "type"=>"Text", "len"=>3},
+ {"id"=>"AITS", "type"=>"Text", "len"=>5},
+ {"id"=>"AITSCC", "type"=>"Text", "len"=>2},
+ {"id"=>"TTRACT", "type"=>"Text", "len"=>6},
+ {"id"=>"TBLKGRP", "type"=>"Text", "len"=>1},
+ {"id"=>"ANRC", "type"=>"Text", "len"=>5},
+ {"id"=>"ANRCCC", "type"=>"Text", "len"=>2},
+ {"id"=>"CBSA", "type"=>"Text", "len"=>5},
+ {"id"=>"CBSASC", "type"=>"Text", "len"=>2},
+ {"id"=>"METDIV", "type"=>"Text", "len"=>5},
+ {"id"=>"CSA", "type"=>"Text", "len"=>3},
+ {"id"=>"NECTA", "type"=>"Text", "len"=>5},
+ {"id"=>"NECTASC", "type"=>"Text", "len"=>2},
+ {"id"=>"NECTADIV", "type"=>"Text", "len"=>5},
+ {"id"=>"CNECTA", "type"=>"Text", "len"=>3},
+ {"id"=>"CBSAPCI", "type"=>"Text", "len"=>1},
+ {"id"=>"NECTAPCI", "type"=>"Text", "len"=>1},
+ {"id"=>"UA", "type"=>"Text", "len"=>5},
+ {"id"=>"UASC", "type"=>"Text", "len"=>2},
+ {"id"=>"UATYPE", "type"=>"Text", "len"=>1},
+ {"id"=>"UR", "type"=>"Text", "len"=>1},
+ {"id"=>"CD", "type"=>"Text", "len"=>2},
+ {"id"=>"SLDU", "type"=>"Text", "len"=>3},
+ {"id"=>"SLDL", "type"=>"Text", "len"=>3},
+ {"id"=>"VTD", "type"=>"Text", "len"=>6},
+ {"id"=>"VTDI", "type"=>"Text", "len"=>1},
+ {"id"=>"RESERVE2", "type"=>"Text", "len"=>3},
+ {"id"=>"ZCTA5", "type"=>"Text", "len"=>5},
+ {"id"=>"SUBMCD", "type"=>"Text", "len"=>5},
+ {"id"=>"SUBMCDCC", "type"=>"Text", "len"=>2},
+ {"id"=>"SDELM", "type"=>"Text", "len"=>5},
+ {"id"=>"SDSEC", "type"=>"Text", "len"=>5},
+ {"id"=>"SDUNI", "type"=>"Text", "len"=>5},
+ {"id"=>"AREALAND", "type"=>"Text", "len"=>14},
+ {"id"=>"AREAWATR", "type"=>"Text", "len"=>14},
+ {"id"=>"NAME", "type"=>"Text", "len"=>90},
+ {"id"=>"FUNCSTAT", "type"=>"Text", "len"=>1},
+ {"id"=>"GCUNI", "type"=>"Text", "len"=>1},
+ {"id"=>"POP100", "type"=>"Text", "len"=>9},
+ {"id"=>"HU100", "type"=>"Text", "len"=>9},
+ {"id"=>"INTPTLAT", "type"=>"Float", "len"=>11},
+ {"id"=>"INTPTLON", "type"=>"Float", "len"=>12},
+ {"id"=>"LSADC", "type"=>"Text", "len"=>2},
+ {"id"=>"PARTFLAG", "type"=>"Text", "len"=>1},
+ {"id"=>"RESERVE3", "type"=>"Text", "len"=>6},
+ {"id"=>"UGA", "type"=>"Text", "len"=>5},
+ {"id"=>"STATENS", "type"=>"Text", "len"=>8},
+ {"id"=>"COUNTYNS", "type"=>"Text", "len"=>8},
+ {"id"=>"COUSUBNS", "type"=>"Text", "len"=>8},
+ {"id"=>"PLACENS", "type"=>"Text", "len"=>8},
+ {"id"=>"CONCITNS", "type"=>"Text", "len"=>8},
+ {"id"=>"AIANHHNS", "type"=>"Text", "len"=>8},
+ {"id"=>"AITSNS", "type"=>"Text", "len"=>8},
+ {"id"=>"ANRCNS", "type"=>"Text", "len"=>8},
+ {"id"=>"SUBMCDNS", "type"=>"Text", "len"=>8},
+ {"id"=>"CD113", "type"=>"Text", "len"=>2},
+ {"id"=>"CD114", "type"=>"Text", "len"=>2},
+ {"id"=>"CD115", "type"=>"Text", "len"=>2},
+ {"id"=>"SLDU2", "type"=>"Text", "len"=>3},
+ {"id"=>"SLDU3", "type"=>"Text", "len"=>3},
+ {"id"=>"SLDU4", "type"=>"Text", "len"=>3},
+ {"id"=>"SLDL2", "type"=>"Text", "len"=>3},
+ {"id"=>"SLDL3", "type"=>"Text", "len"=>3},
+ {"id"=>"SLDL4", "type"=>"Text", "len"=>3},
+ {"id"=>"AIANHHSC", "type"=>"Text", "len"=>2},
+ {"id"=>"CSASC", "type"=>"Text", "len"=>2},
+ {"id"=>"CNECTASC", "type"=>"Text", "len"=>2},
+ {"id"=>"MEMI", "type"=>"Text", "len"=>1},
+ {"id"=>"NMEMI", "type"=>"Text", "len"=>1},
+ {"id"=>"PUMA", "type"=>"Text", "len"=>5},
+ {"id"=>"RESERVED", "type"=>"Text", "len"=>18}
+]
part1_cols=[
{"id"=>"P0010001", "type"=>"Integer", "len"=>4},
@@ -145,7 +245,8 @@
{"id"=>"P0020070", "type"=>"Integer", "len"=>4},
{"id"=>"P0020071", "type"=>"Integer", "len"=>4},
{"id"=>"P0020072", "type"=>"Integer", "len"=>4},
- {"id"=>"P0020073", "type"=>"Integer", "len"=>4}]
+ {"id"=>"P0020073", "type"=>"Integer", "len"=>4}
+]
part2_cols=[
{"id"=>"P0030001", "type"=>"Integer", "len"=>4},
@@ -294,11 +395,7 @@
{"id"=>"P0040073", "type"=>"Integer", "len"=>4},
{"id"=>"H0010001", "type"=>"Integer", "len"=>4},
{"id"=>"H0010002", "type"=>"Integer", "len"=>4},
- {"id"=>"H0010003", "type"=>"Integer", "len"=>4}]
+ {"id"=>"H0010003", "type"=>"Integer", "len"=>4}
+]
-cols=part1_cols.map {|x| "\"#{x['id']}\" = #{stage_name}.\"#{x['id']}\""} * ", "
-File.open("update_part1","w") {|f| f<<"UPDATE #{table_name} SET #{cols} FROM #{stage_name} WHERE #{table_name}.\"LOGRECNO\" = #{stage_name}.\"LOGRECNO\";"}
-stage_name = "pt2_staging"
-cols=part2_cols.map {|x| "\"#{x['id']}\" = #{stage_name}.\"#{x['id']}\""} * ", "
-File.open("update_part2","w") {|f| f<<"UPDATE #{table_name} SET #{cols} FROM #{stage_name} WHERE #{table_name}.\"LOGRECNO\" = #{stage_name}.\"LOGRECNO\";"}
@@ -0,0 +1,4 @@
+source :gemcutter
+gem "sinatra"
+gem "json"
+gem "pg"
@@ -0,0 +1,18 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ json (1.5.1)
+ pg (0.10.1)
+ rack (1.2.2)
+ sinatra (1.2.3)
+ rack (~> 1.1)
+ tilt (>= 1.2.2, < 2.0)
+ tilt (1.2.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ json
+ pg
+ sinatra
@@ -0,0 +1,7 @@
+---
+database:
+ host: donkey.local
+ port: 5432
+ db: census2010
+ user: postgres
+ password: code4america
@@ -0,0 +1,14 @@
+require 'sinatra'
+require 'json'
+require 'pg'
+
+$db_config = YAML::load_file('config.yml')['database']
+
+get '/data' do
+ conn = PGconn.connect($db_config['host'], $db_config['port'], '', '', $db_config['db'], $db_config['user'], $db_config['password'])
+
+ res = conn.exec(%&SELECT *, ST_Distance_Sphere("the_geom", ST_Point($1, $2)) AS "dist" FROM census WHERE "SUMLEV" = '$3' ORDER BY "dist" DESC LIMIT 1&,
+ [params[:lon], params[:lat], params[:sumlev]])
+
+
+end
@@ -0,0 +1 @@
+for FILE in *.csv; do echo "set client_encoding = 'latin1'; COPY census from '/home/donkey/code/census2pgsql/data/$FILE'" | psql -d census2010; done
View
@@ -1,120 +0,0 @@
-columns = [{"id"=>"FILEID", "type"=>"Text", "len"=>6},
- {"id"=>"STUSAB", "type"=>"Text", "len"=>2},
- {"id"=>"SUMLEV", "type"=>"Text", "len"=>3},
- {"id"=>"GEOCOMP", "type"=>"Text", "len"=>2},
- {"id"=>"CHARITER", "type"=>"Text", "len"=>3},
- {"id"=>"CIFSN", "type"=>"Text", "len"=>2},
- {"id"=>"LOGRECNO", "type"=>"Text", "len"=>7},
- {"id"=>"REGION", "type"=>"Text", "len"=>1},
- {"id"=>"DIVISION", "type"=>"Text", "len"=>1},
- {"id"=>"STATE", "type"=>"Text", "len"=>2},
- {"id"=>"COUNTY", "type"=>"Text", "len"=>3},
- {"id"=>"COUNTYCC", "type"=>"Text", "len"=>2},
- {"id"=>"COUNTYSC", "type"=>"Text", "len"=>2},
- {"id"=>"COUSUB", "type"=>"Text", "len"=>5},
- {"id"=>"COUSUBCC", "type"=>"Text", "len"=>2},
- {"id"=>"COUSUBSC", "type"=>"Text", "len"=>2},
- {"id"=>"PLACE", "type"=>"Text", "len"=>5},
- {"id"=>"PLACECC", "type"=>"Text", "len"=>2},
- {"id"=>"PLACESC", "type"=>"Text", "len"=>2},
- {"id"=>"TRACT", "type"=>"Text", "len"=>6},
- {"id"=>"BLKGRP", "type"=>"Text", "len"=>1},
- {"id"=>"BLOCK", "type"=>"Text", "len"=>4},
- {"id"=>"IUC", "type"=>"Text", "len"=>2},
- {"id"=>"CONCIT", "type"=>"Text", "len"=>5},
- {"id"=>"CONCITCC", "type"=>"Text", "len"=>2},
- {"id"=>"CONCITSC", "type"=>"Text", "len"=>2},
- {"id"=>"AIANHH", "type"=>"Text", "len"=>4},
- {"id"=>"AIANHHFP", "type"=>"Text", "len"=>5},
- {"id"=>"AIANHHCC", "type"=>"Text", "len"=>2},
- {"id"=>"AIHHTLI", "type"=>"Text", "len"=>1},
- {"id"=>"AITSCE", "type"=>"Text", "len"=>3},
- {"id"=>"AITS", "type"=>"Text", "len"=>5},
- {"id"=>"AITSCC", "type"=>"Text", "len"=>2},
- {"id"=>"TTRACT", "type"=>"Text", "len"=>6},
- {"id"=>"TBLKGRP", "type"=>"Text", "len"=>1},
- {"id"=>"ANRC", "type"=>"Text", "len"=>5},
- {"id"=>"ANRCCC", "type"=>"Text", "len"=>2},
- {"id"=>"CBSA", "type"=>"Text", "len"=>5},
- {"id"=>"CBSASC", "type"=>"Text", "len"=>2},
- {"id"=>"METDIV", "type"=>"Text", "len"=>5},
- {"id"=>"CSA", "type"=>"Text", "len"=>3},
- {"id"=>"NECTA", "type"=>"Text", "len"=>5},
- {"id"=>"NECTASC", "type"=>"Text", "len"=>2},
- {"id"=>"NECTADIV", "type"=>"Text", "len"=>5},
- {"id"=>"CNECTA", "type"=>"Text", "len"=>3},
- {"id"=>"CBSAPCI", "type"=>"Text", "len"=>1},
- {"id"=>"NECTAPCI", "type"=>"Text", "len"=>1},
- {"id"=>"UA", "type"=>"Text", "len"=>5},
- {"id"=>"UASC", "type"=>"Text", "len"=>2},
- {"id"=>"UATYPE", "type"=>"Text", "len"=>1},
- {"id"=>"UR", "type"=>"Text", "len"=>1},
- {"id"=>"CD", "type"=>"Text", "len"=>2},
- {"id"=>"SLDU", "type"=>"Text", "len"=>3},
- {"id"=>"SLDL", "type"=>"Text", "len"=>3},
- {"id"=>"VTD", "type"=>"Text", "len"=>6},
- {"id"=>"VTDI", "type"=>"Text", "len"=>1},
- {"id"=>"RESERVE2", "type"=>"Text", "len"=>3},
- {"id"=>"ZCTA5", "type"=>"Text", "len"=>5},
- {"id"=>"SUBMCD", "type"=>"Text", "len"=>5},
- {"id"=>"SUBMCDCC", "type"=>"Text", "len"=>2},
- {"id"=>"SDELM", "type"=>"Text", "len"=>5},
- {"id"=>"SDSEC", "type"=>"Text", "len"=>5},
- {"id"=>"SDUNI", "type"=>"Text", "len"=>5},
- {"id"=>"AREALAND", "type"=>"Text", "len"=>14},
- {"id"=>"AREAWATR", "type"=>"Text", "len"=>14},
- {"id"=>"NAME", "type"=>"Text", "len"=>90},
- {"id"=>"FUNCSTAT", "type"=>"Text", "len"=>1},
- {"id"=>"GCUNI", "type"=>"Text", "len"=>1},
- {"id"=>"POP100", "type"=>"Text", "len"=>9},
- {"id"=>"HU100", "type"=>"Text", "len"=>9},
- {"id"=>"INTPTLAT", "type"=>"Float", "len"=>11},
- {"id"=>"INTPTLON", "type"=>"Float", "len"=>12},
- {"id"=>"LSADC", "type"=>"Text", "len"=>2},
- {"id"=>"PARTFLAG", "type"=>"Text", "len"=>1},
- {"id"=>"RESERVE3", "type"=>"Text", "len"=>6},
- {"id"=>"UGA", "type"=>"Text", "len"=>5},
- {"id"=>"STATENS", "type"=>"Text", "len"=>8},
- {"id"=>"COUNTYNS", "type"=>"Text", "len"=>8},
- {"id"=>"COUSUBNS", "type"=>"Text", "len"=>8},
- {"id"=>"PLACENS", "type"=>"Text", "len"=>8},
- {"id"=>"CONCITNS", "type"=>"Text", "len"=>8},
- {"id"=>"AIANHHNS", "type"=>"Text", "len"=>8},
- {"id"=>"AITSNS", "type"=>"Text", "len"=>8},
- {"id"=>"ANRCNS", "type"=>"Text", "len"=>8},
- {"id"=>"SUBMCDNS", "type"=>"Text", "len"=>8},
- {"id"=>"CD113", "type"=>"Text", "len"=>2},
- {"id"=>"CD114", "type"=>"Text", "len"=>2},
- {"id"=>"CD115", "type"=>"Text", "len"=>2},
- {"id"=>"SLDU2", "type"=>"Text", "len"=>3},
- {"id"=>"SLDU3", "type"=>"Text", "len"=>3},
- {"id"=>"SLDU4", "type"=>"Text", "len"=>3},
- {"id"=>"SLDL2", "type"=>"Text", "len"=>3},
- {"id"=>"SLDL3", "type"=>"Text", "len"=>3},
- {"id"=>"SLDL4", "type"=>"Text", "len"=>3},
- {"id"=>"AIANHHSC", "type"=>"Text", "len"=>2},
- {"id"=>"CSASC", "type"=>"Text", "len"=>2},
- {"id"=>"CNECTASC", "type"=>"Text", "len"=>2},
- {"id"=>"MEMI", "type"=>"Text", "len"=>1},
- {"id"=>"NMEMI", "type"=>"Text", "len"=>1},
- {"id"=>"PUMA", "type"=>"Text", "len"=>5},
- {"id"=>"RESERVED", "type"=>"Text", "len"=>18}]
-
-num_format='9'*11+'.'+'9'*11
-pos=1;
-substring_part=columns.map do |x|
- l = x['len'];
- r = "substring(data,#{pos},#{l})"
- r = "to_number(#{r},'#{num_format}')" if x['type']=="Float"
- r = "trim(#{r})" if x['type']=="Text"
- r +=" as #{x['id']}";
- pos+=l;
- r
-end*", "
-
-insert_part = columns.map{|x| "\"#{x["id"]}\""}*", "
-
-table_name = "census"
-stage_name = "geo_staging"
-
-File.open("giant_statement","w") {|f| f<< "INSERT INTO #{table_name}(#{insert_part}) SELECT #{substring_part} FROM #{stage_name};"}
@@ -1 +0,0 @@
-for FILE in *geo*; do echo "set client_encoding = 'latin1'; COPY geo_staging from '/home/donkey/code/census2pgsql/data/$FILE'" | psql -d census2010; done
@@ -1 +0,0 @@
-for FILE in *12010.pl; do echo "set client_encoding = 'latin1'; COPY pt1_staging from '/home/donkey/code/census2pgsql/data/$FILE' DELIMITER AS ','" | psql -d census2010; done
@@ -1 +0,0 @@
-for FILE in *22010.pl; do echo "set client_encoding = 'latin1'; COPY pt2_staging from '/home/donkey/code/census2pgsql/data/$FILE' DELIMITER AS ','" | psql -d census2010; done
@@ -1 +0,0 @@
-UPDATE census SET "P0010001" = pt1_staging."P0010001", "P0010002" = pt1_staging."P0010002", "P0010003" = pt1_staging."P0010003", "P0010004" = pt1_staging."P0010004", "P0010005" = pt1_staging."P0010005", "P0010006" = pt1_staging."P0010006", "P0010007" = pt1_staging."P0010007", "P0010008" = pt1_staging."P0010008", "P0010009" = pt1_staging."P0010009", "P0010010" = pt1_staging."P0010010", "P0010011" = pt1_staging."P0010011", "P0010012" = pt1_staging."P0010012", "P0010013" = pt1_staging."P0010013", "P0010014" = pt1_staging."P0010014", "P0010015" = pt1_staging."P0010015", "P0010016" = pt1_staging."P0010016", "P0010017" = pt1_staging."P0010017", "P0010018" = pt1_staging."P0010018", "P0010019" = pt1_staging."P0010019", "P0010020" = pt1_staging."P0010020", "P0010021" = pt1_staging."P0010021", "P0010022" = pt1_staging."P0010022", "P0010023" = pt1_staging."P0010023", "P0010024" = pt1_staging."P0010024", "P0010025" = pt1_staging."P0010025", "P0010026" = pt1_staging."P0010026", "P0010027" = pt1_staging."P0010027", "P0010028" = pt1_staging."P0010028", "P0010029" = pt1_staging."P0010029", "P0010030" = pt1_staging."P0010030", "P0010031" = pt1_staging."P0010031", "P0010032" = pt1_staging."P0010032", "P0010033" = pt1_staging."P0010033", "P0010034" = pt1_staging."P0010034", "P0010035" = pt1_staging."P0010035", "P0010036" = pt1_staging."P0010036", "P0010037" = pt1_staging."P0010037", "P0010038" = pt1_staging."P0010038", "P0010039" = pt1_staging."P0010039", "P0010040" = pt1_staging."P0010040", "P0010041" = pt1_staging."P0010041", "P0010042" = pt1_staging."P0010042", "P0010043" = pt1_staging."P0010043", "P0010044" = pt1_staging."P0010044", "P0010045" = pt1_staging."P0010045", "P0010046" = pt1_staging."P0010046", "P0010047" = pt1_staging."P0010047", "P0010048" = pt1_staging."P0010048", "P0010049" = pt1_staging."P0010049", "P0010050" = pt1_staging."P0010050", "P0010051" = pt1_staging."P0010051", "P0010052" = pt1_staging."P0010052", "P0010053" = pt1_staging."P0010053", "P0010054" = pt1_staging."P0010054", "P0010055" = pt1_staging."P0010055", "P0010056" = pt1_staging."P0010056", "P0010057" = pt1_staging."P0010057", "P0010058" = pt1_staging."P0010058", "P0010059" = pt1_staging."P0010059", "P0010060" = pt1_staging."P0010060", "P0010061" = pt1_staging."P0010061", "P0010062" = pt1_staging."P0010062", "P0010063" = pt1_staging."P0010063", "P0010064" = pt1_staging."P0010064", "P0010065" = pt1_staging."P0010065", "P0010066" = pt1_staging."P0010066", "P0010067" = pt1_staging."P0010067", "P0010068" = pt1_staging."P0010068", "P0010069" = pt1_staging."P0010069", "P0010070" = pt1_staging."P0010070", "P0010071" = pt1_staging."P0010071", "P0020001" = pt1_staging."P0020001", "P0020002" = pt1_staging."P0020002", "P0020003" = pt1_staging."P0020003", "P0020004" = pt1_staging."P0020004", "P0020005" = pt1_staging."P0020005", "P0020006" = pt1_staging."P0020006", "P0020007" = pt1_staging."P0020007", "P0020008" = pt1_staging."P0020008", "P0020009" = pt1_staging."P0020009", "P0020010" = pt1_staging."P0020010", "P0020011" = pt1_staging."P0020011", "P0020012" = pt1_staging."P0020012", "P0020013" = pt1_staging."P0020013", "P0020014" = pt1_staging."P0020014", "P0020015" = pt1_staging."P0020015", "P0020016" = pt1_staging."P0020016", "P0020017" = pt1_staging."P0020017", "P0020018" = pt1_staging."P0020018", "P0020019" = pt1_staging."P0020019", "P0020020" = pt1_staging."P0020020", "P0020021" = pt1_staging."P0020021", "P0020022" = pt1_staging."P0020022", "P0020023" = pt1_staging."P0020023", "P0020024" = pt1_staging."P0020024", "P0020025" = pt1_staging."P0020025", "P0020026" = pt1_staging."P0020026", "P0020027" = pt1_staging."P0020027", "P0020028" = pt1_staging."P0020028", "P0020029" = pt1_staging."P0020029", "P0020030" = pt1_staging."P0020030", "P0020031" = pt1_staging."P0020031", "P0020032" = pt1_staging."P0020032", "P0020033" = pt1_staging."P0020033", "P0020034" = pt1_staging."P0020034", "P0020035" = pt1_staging."P0020035", "P0020036" = pt1_staging."P0020036", "P0020037" = pt1_staging."P0020037", "P0020038" = pt1_staging."P0020038", "P0020039" = pt1_staging."P0020039", "P0020040" = pt1_staging."P0020040", "P0020041" = pt1_staging."P0020041", "P0020042" = pt1_staging."P0020042", "P0020043" = pt1_staging."P0020043", "P0020044" = pt1_staging."P0020044", "P0020045" = pt1_staging."P0020045", "P0020046" = pt1_staging."P0020046", "P0020047" = pt1_staging."P0020047", "P0020048" = pt1_staging."P0020048", "P0020049" = pt1_staging."P0020049", "P0020050" = pt1_staging."P0020050", "P0020051" = pt1_staging."P0020051", "P0020052" = pt1_staging."P0020052", "P0020053" = pt1_staging."P0020053", "P0020054" = pt1_staging."P0020054", "P0020055" = pt1_staging."P0020055", "P0020056" = pt1_staging."P0020056", "P0020057" = pt1_staging."P0020057", "P0020058" = pt1_staging."P0020058", "P0020059" = pt1_staging."P0020059", "P0020060" = pt1_staging."P0020060", "P0020061" = pt1_staging."P0020061", "P0020062" = pt1_staging."P0020062", "P0020063" = pt1_staging."P0020063", "P0020064" = pt1_staging."P0020064", "P0020065" = pt1_staging."P0020065", "P0020066" = pt1_staging."P0020066", "P0020067" = pt1_staging."P0020067", "P0020068" = pt1_staging."P0020068", "P0020069" = pt1_staging."P0020069", "P0020070" = pt1_staging."P0020070", "P0020071" = pt1_staging."P0020071", "P0020072" = pt1_staging."P0020072", "P0020073" = pt1_staging."P0020073" FROM pt1_staging WHERE census."LOGRECNO" = pt1_staging."LOGRECNO";
Oops, something went wrong.

0 comments on commit a8547dd

Please sign in to comment.