Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Baseline Crisis Data and new/updated Data on Crisis Onset


CrisisDay0CountryISO3BaselineUpdatesCreates
Rohingya MyanmarMMR54918
Rohingya BangladeshBGD761338
Irma/Maria 




Irma/Maria16  

























The SQL queries for the Rohingya Crisis MMR and BGD (in the order Baseline, Updates, Creates) are:

...

The SQL queries for the the Hurricane Irma Crisis () (in the order Baseline, Updates, Creates) are:

...

The SQL queries for the the Hurricane Maria Crisis () (and Maria Crises combined with affected countries taken from https://reliefweb.int/disaster/tc-2017-000125-dom and https://reliefweb.int/disaster/tc-2017-000136-atg (in the order Baseline, Updates, Creates) are:

select b.name, a.last_modified, b.location from dbdatasets a, dbinfodatasets b, dbruns c where a.id = b.id and a.run_number = c.run_number and b.location like '%%' and a.update_frequency != -1 and date(c.run_date) = '2017-09-1502' and a.last_modified > '2016-03-1502' order by a.last_modified;

with baseline as
(select a.id, b.name from dbdatasets a, dbinfodatasets b, dbruns c where a.id = b.id and a.run_number = c.run_number and b.location like '%%' and a.update_frequency != -1 and date(c.run_date) = '2017-09-1502' and a.last_modified > '2016-03-1502')
select e.name, max(d.last_modified) as last_modified from dbdatasets d, baseline e where d.id=e.id and d.last_modified > '2017-09-1603' group by e.name;

select e.name, max(d.last_modified) as last_modified from dbdatasets d, dbinfodatasets e where e.location like '%%' and d.update_frequency != -1 and d.id not in (select a.id from dbdatasets a, dbinfodatasets b, dbruns c where a.id = b.id and
a.run_number = c.run_number and b.location like '%%' and a.update_frequency != -1 and date(c.run_date) = '2017-09-1502' and a.last_modified > '2016-03-1502') and d.id=e.id and d.last_modified > '2017-09-1603' group by e.name;