2 Combine the sf1_blocks and tiger_blocks tables into one
3 comprehensive "blocks" table. Once we're done, we drop
4 sf1_blocks and tiger_blocks.
14 sf1_blocks.total_area
,
15 sf1_blocks.population_density
,
17 FROM sf1_blocks
INNER JOIN tiger_blocks
18 ON sf1_blocks.blkidfp00
= tiger_blocks.blkidfp00
);
20 DROP TABLE sf1_blocks
;
21 DROP TABLE tiger_blocks
;
23 /* We have to re-create the GiST index on the new table as well. */
24 CREATE INDEX idx_geometry_gist
ON blocks
USING gist(the_geom
);
26 /* And generate some statistics. */