Skip to content
Advertisement

Count values between double quotes and brackets

How can I group by and count the values separated by double quotes between the brackets? I have 400K rows, so I’m also concerned about performance.

Desired output:

Advertisement

Answer

Do you mean something like this? (The with clause is only for testing – remove it, and use your actual table and column names in the main query.)

I am sorry, but I have no clue what “register” means in this context. If you mean that you have 400K rows, I can’t see how performance would be an issue. A quick test on my system (with 402K rows) took about 0.33 seconds.

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