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
2 months agoLatricia
2 months agoTeri
9 days agoArthur
16 days agoRodney
29 days agoJerrod
2 months agoLayla
2 months agoZachary
19 days agoZana
24 days agoDorothea
1 months agoRonald
2 months agoTruman
1 months agoEdwin
1 months agoJosphine
2 months agoHyman
3 months agoTracey
3 months agoEnola
3 months agoTori
3 months agoAnnamaria
3 months agoGayla
3 months ago