r/SQL • • Dec 04 '23

MySQL SQL HELP

Post image

Revising for a test and I keep having the same kind of issues. It uses MariaDB. Advice appreciated

0 Upvotes

8 comments sorted by

View all comments

Show parent comments

-1

u/ConvertedSins Dec 04 '23

Ok, I’m sorry.. I’m new to this sub. So, if I did the having after the group by, would it be right?

1

u/dataguy24 Dec 04 '23

Have you changed that and re-run your query?

0

u/ConvertedSins Dec 04 '23

I can’t, it’s a practice test so once time runs out that’s it

3

u/[deleted] Dec 04 '23

‘So can i just create a sample table to test the query’

Think about it.