This is a tricky one! I'm going to go with option B) 2 rows. The query is pretty straightforward, but you have to pay attention to that HAVING clause. And hey, at least it's not as confusing as that 'SELECT DISTINCT' question from last time, right?
Hmm, let me think this through. The table has 5 rows, and the query is grouping by gid, so there will be 3 groups. But the HAVING clause is filtering out the groups where the max score is less than 60, so the answer must be 2 rows.
I'm pretty sure the answer is 2 rows. The table has 5 rows, but the query is only selecting the groups where the max score is greater than 60, and there are only 2 such groups.
The query is grouping by gid and selecting the maximum score for each group, but it's also filtering out the groups where the maximum score is less than 60. So, the result should have 3 rows, one for each group with a max score greater than 60.
An
13 days agoLatricia
16 days agoJerrod
2 days agoLayla
19 days agoRonald
25 days agoJosphine
9 days agoHyman
1 months agoTracey
2 months agoEnola
2 months agoTori
2 months agoAnnamaria
2 months agoGayla
2 months ago