3 ms·
Having consulted for hundreds of analysts writing SQL to explore their data and create reports, I would agree with this assessment. Additionally, I tend to avoi
by raymondgh 7y ago
Having consulted for hundreds of analysts writing SQL to explore their data and create reports, I would agree with this assessment. Additionally, I tend to avoid recommending MySQL because of a strange behavior when using Group By. In Postgres, every column must be either aggregated or grouped by when using a grouping expression. In MySQL, this requirement is not present, and the ambiguity of the query is resolved by returning basically random results which are quite often misunderstood to represent the desired report. In other words, you can screw up in MySQL easily and not notice, whereas in Postgres, you’ll get an error message.
https://stackoverflow.com/questions/1023347/mysql-selecting-a-column-not-in-group-by https://stackoverflow.com/questions/1023347/mysql-selecting-...
- dawkins 7y agoThis was in older versions. From 5.7 ONLY_FULL_GROUP_BY is enabled by default.