This is incompatible with sql_mode=only_full_group_by
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
seen from United States
seen from Malaysia
seen from Yemen
seen from China

seen from Malaysia

seen from United States
seen from United Kingdom
seen from United States
seen from Belgium
seen from United Kingdom

seen from United States
seen from China
seen from Greece

seen from Ireland
seen from China
seen from Belgium
seen from Russia
seen from North Macedonia
seen from Egypt

seen from Belgium
This is incompatible with sql_mode=only_full_group_by
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
MySQL: Solve sql_mode=only_full_group_by Error by Turning off Strict SQL Mode
MySQL: Solve sql_mode=only_full_group_by Error by Turning off Strict SQL Mode
When moving an older MySQL-based project to a new server instance, one of the SQL query errors bound to immediately strike is that of triggering the sql_mode=only_full_group error, caused by your SQL select statements referring to columns that are not functionally dependent on the GROUP BY column. (Best explained here in the MySQL documentation)
This new, “Strict SQL Mode” (which is actually a…
View On WordPress