How do you filter out a group in the HAVING clause if at least one row of the group meets some condition? For example, If have the following table:
And I want group by id1
and id2
and exclude any group where at least one of its rows has "value" in the someText
column ? So in my results, the group (1,1) should be excluded but (1,2), (2,1) and (2,3) should be returned. Preferably, I am looking for a solution using the HAVING clause(this is just a simple example to illustrate the problem - but I am working on large query))