Skip to content
Advertisement

Grouping by column and rows

I have a table like this:

I’m looking for a generic request that would get me all berries where there are three entries with the same ‘some_key’ and one of the entries (within those three entries belonging to the same some_key) has the weight = 0

in case of the sample table, expected output would be:

Advertisement

Answer

Try this-

As per your edited question, you can try this below-

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement