Comments - GROUP BY
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Hi,
I notice I got a different result between those two request :
A°/ SELECT wins, COUNT(*) FROM plays GROUP BY wins; B°/ SELECT wins, COUNT(*) FROM plays GROUP BY 'wins';
On A°/ i got the normal result : +------+----------+
+------+----------+
+------+----------+
As for B° I got something strange : +------+----------+
+------+----------+
+------+----------+
Could someone tell me the reason ?
Many thanks !
Because
'wins'
in single quotes doesn't exist, so the latter query is essentially the same asYou may have been trying to use backticks (see Identifier Names):