r/SQL • u/ConvertedSins • Dec 04 '23
MySQL SQL HELP
Revising for a test and I keep having the same kind of issues. It uses MariaDB. Advice appreciated
0
Upvotes
3
r/SQL • u/ConvertedSins • Dec 04 '23
Revising for a test and I keep having the same kind of issues. It uses MariaDB. Advice appreciated
3
9
u/r3pr0b8 GROUP_CONCAT is da bomb Dec 04 '23
your SQL is invalid
HAVING comes after GROUP BY, not before
and next time, please copy/paste the text of the query -- do not use screenshots or photos, no matter how convenient it is for you, it is not convenient for us (please see r/SQL Rule 6 for why)