Can we use distinct in HAVING?
Can we use distinct in HAVING? using Distinct with a Group BY is redudant, yes. But it doesnt solve the root problem. The root problem is that the HAVING clause counts the total number before the GROUP BY or the DISTINCT is operated on. Thus removing the DISTINCT will still cause an incorrect count. Can […]