NYCPlanning / db-facilities

🏭 🏢 🏬 🏣 🏤 🏥 🏦 🏨 🏪 🏫 🏩
https://nycplanning.github.io/db-facilities
0 stars 0 forks source link

Develop QAQC report(s): #219

Closed AmandaDoyle closed 4 years ago

AmandaDoyle commented 5 years ago

In addition to current reports also output the following summary statistics to help in QAQC procedures:

SPTKL commented 5 years ago
SELECT datasource, datasource_old, count_old, count_new, count_new - count_old as diff 
from(
    SELECT REPLACE(datasource, 'facilities_', '' ) as datasource_join, datasource as datasource_old, count(datasource) as count_old from (
        SELECT unnest(string_to_array(pgtable, ';')) as datasource 
        from facilities_20190110) as a group by datasource) a
FULL JOIN
(select datasource, count(datasource) as count_new from facilities group by datasource) b 
on a.datasource_join = b.datasource;

count_by_source_comparison.xlsx

baolingz commented 5 years ago

https://github.com/NYCPlanning/db-facilities-tmp/blob/qaqc/facdb_qaqc.ipynb

github-actions[bot] commented 4 years ago

Stale issue message