Versions Compared

Key

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

...

38
CrisisDay0CountryISO3BaselineUpdatesCreates
Rohingya MyanmarMMR54971811
Rohingya BangladeshBGD76131118
Irma/Maria AnguillaAIA8111
Irma/Maria Antigua and BarbudaATG26714
Irma/Maria BahamasBHS4377
Irma/Maria BarbadosBRB3556
Irma/Maria Bonaire, Saint Eustatius and Saba (The Netherlands)BES000
Irma/Maria British Virgin IslandsVGB1159
Irma/Maria CubaCUB5577
Irma/Maria DominicaDMA17321
Irma/Maria Dominican RepublicDOM47814
Irma/Maria Guadeloupe (France)GLP


Irma/Maria HaitiHTI


Irma/Maria Martinique (France)MTQ


Irma/Maria MontserratMSR


Irma/Maria Puerto Rico (The United States of America)PRI


Irma/Maria Saint Barthélemy (France)BLM


Irma/Maria Saint Kitts and NevisKNA


Irma/Maria Saint LuciaLCA


Irma/Maria Saint Martin (France)MAF


Irma/Maria Saint Vincent and the GrenadinesVCT


Irma/Maria Sint Maarten (The Netherlands)SXM


Irma/Maria Turks and Caicos IslandsTCA


Irma/Maria United States Virgin IslandsVIR


The SQL queries for the Rohingya Crisis MMR and BGD (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 '%mmr%' and a.update_frequency != -1 and date(c.run_date) = '2017-08-24' and a.last_modified > '2016-02-24' 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 '%mmr%' and a.update_frequency != -1 and date(c.run_date) = '2017-08-24' and a.last_modified > '2016-02-24')
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-08-24' and d.last_modified < '2017-10-25' group by e.name;

select e.name, max(d.last_modified) as last_modified from dbdatasets d, dbinfodatasets e where e.location like '%mmr%' 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 '%mmr%' and a.update_frequency != -1 and date(c.run_date) =< '2017-08-2425') and ad.id=e.id and d.last_modified > '20162017-0208-24') and d.id=e.id and d.last_modified >< '2017-0810-25' group by e.name;


The SQL queries for the the Hurricane Irma 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):

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 '%%%aia%' and a.update_frequency != -1 and date(c.run_date) = '2017-09-02' and a.last_modified > '2016-03-02' 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 '%%%aia%' and a.update_frequency != -1 and date(c.run_date) = '2017-09-02' and a.last_modified > '2016-03-02')
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-02' and d.last_modified < '2017-11-03' group by e.name;

select e.name, max(d.last_modified) as last_modified from dbdatasets d, dbinfodatasets e where e.location like '%%%aia%' 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 '%%%aia%' and a.update_frequency != -1 and date(c.run_date) =< '2017-09-0203') and ad.id=e.id and d.last_modified > '20162017-0309-02') and d.id=e.id and d.last_modified >< '2017-0911-03' group by e.name;