Skip to content
Advertisement

Grouping repeated numbers sqlite table

I have this table and I need the query to show the numbers repeated more than 2 times in which draw.

I expect this result

I’m doing this:

But it doesn’t work.

Thanks in advance.

Advertisement

Answer

You can first transpose your data with a cte and union, and then use group by:

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