add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
@@GLOBAL.sql_mode
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
@@SESSION.sql_mode
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
Dept CMonth FMonth Amount
AA 2021-07 2021-07 100
AA 2021-07 2021-08 100
AA 2021-07 2021-09 100
AA 2021-07 2021-10 100
AA 2021-08 2021-08 150
AA 2021-08 2021-09 150
AA 2021-08 2021-10 150
AA 2021-08 2021-11 150
BB 2021-07 2021-07 110
BB 2021-07 2021-08 110
BB 2021-07 2021-09 110
BB 2021-07 2021-10 110
BB 2021-08 2021-08 120
BB 2021-08 2021-09 120
BB 2021-08 2021-10 120
BB 2021-08 2021-11 120
Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'db_591547748.TableA.CMonth' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Dept FMonth Amount
AA 2021-07 100
AA 2021-08 150
AA 2021-09 150
AA 2021-10 150
AA 2021-11 150
BB 2021-07 110
BB 2021-08 120
BB 2021-09 120
BB 2021-10 120
BB 2021-11 120
Dept FMonth Amount
AA 2021-07 100
AA 2021-08 150
AA 2021-09 150
AA 2021-10 150
AA 2021-11 150
BB 2021-07 110
BB 2021-08 120
BB 2021-09 120
BB 2021-10 120
BB 2021-11 120