Slackbot
03/07/2023, 2:34 PMGian Merlino
03/07/2023, 2:46 PMGian Merlino
03/07/2023, 2:46 PMqualifiers map in your sample recordLuiz Augusto
03/07/2023, 3:01 PMselect qualifiers, count(*), count(distinct id) uniqueIds
from table
where qualifiers = 'type1=value1'
[type1=value1, type2=value2, type17=value17] | 17 | 10
[type1=value1, type3=value3, type17=value34] | 3 | 3
[type1=value1, type8=value2, type17=value34] | 11 | 10Gian Merlino
03/07/2023, 6:54 PMSELECT qualifiers, count(*), count(distinct id) uniqueIds
FROM table
WHERE JSON_VALUE(qualifiers, '$.type1') = 'value1'`Gian Merlino
03/07/2023, 6:55 PMLuiz Augusto
03/08/2023, 9:34 AMLuiz Augusto
03/08/2023, 2:21 PMGian Merlino
03/08/2023, 6:12 PMLuiz Augusto
03/09/2023, 1:03 AMGian Merlino
03/09/2023, 1:08 AMLuiz Augusto
03/13/2023, 1:28 PMGian Merlino
03/13/2023, 9:02 PMGian Merlino
03/13/2023, 9:02 PM