Today, I encountered a very weird problem.
Consider the following similar queries (one run with LIMIT clause
and the other without it). The result set has been truncated for
convenience.
[Read more]
mysql> SELECT 'photo_Q' AS db, year_of_account_created,month_of_account_created, year_of_date_uploaded, month_of_date_uploaded, COUNT(distinct user_name) FROM photo_Q1.photo GROUP BY year_of_account_created, month_of_account_created ;
+---------+-------------------------+--------------------------+-----------------------+------------------------+---------------------------+
| db | year_of_account_created | month_of_account_created | year_of_date_uploaded | month_of_date_uploaded | COUNT(distinct user_name) |
+---------+-------------------------+--------------------------+-----------------------+------------------------+---------------------------+
| photo_Q | NULL | NULL …