You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSERT INTO glasnost_daily SELECTCOUNT(*) as counter, DATE(date) as rangedate, destination, sourceFROM glasnost GROUP BY destination, source, DATE(rangedate);
12
+
INSERT INTO glasnost_daily SELECTCOUNT(*) as counter, DATE(date) as rangedate, destination, country_codeFROM glasnost GROUP BY destination, country_code, DATE(rangedate);
13
13
14
14
/* glasnost_monthly */
15
15
DROPTABLE IF EXISTS `glasnost_monthly`;
@@ -18,11 +18,11 @@ CREATE TABLE IF NOT EXISTS `glasnost_monthly` (
INSERT INTO glasnost_monthly SELECTCOUNT(*) as counter, LAST_DAY(date) as rangedate, destination, sourceFROM glasnost GROUP BY destination, source, LAST_DAY(rangedate);
25
+
INSERT INTO glasnost_monthly SELECTCOUNT(*) as counter, LAST_DAY(date) as rangedate, destination, country_codeFROM glasnost GROUP BY destination, country_code, LAST_DAY(rangedate);
26
26
27
27
/* glasnost_yearly */
28
28
DROPTABLE IF EXISTS `glasnost_yearly`;
@@ -31,8 +31,8 @@ CREATE TABLE IF NOT EXISTS `glasnost_yearly` (
INSERT INTO glasnost_yearly SELECTCOUNT(*) as counter, MAKEDATE(YEAR(date), 1) as rangedate, destination, sourceFROM glasnost GROUP BY destination, source, MAKEDATE(YEAR(rangedate), 1);
38
+
INSERT INTO glasnost_yearly SELECTCOUNT(*) as counter, MAKEDATE(YEAR(date), 1) as rangedate, destination, country_codeFROM glasnost GROUP BY destination, country_code, MAKEDATE(YEAR(rangedate), 1);
0 commit comments