Skip to content
Advertisement

Return only ALL CAPS strings in BigQuery

Pretty simple question, specific to BigQuery. I’m sure there’s a command I’m missing. I’m used to using “collate” in another query which doesn’t work here.

Desired return:

JOHN@EMAIL.COM,STACY@EMAIL.COM

Advertisement

Answer

Consider below

If applied to sample data in your question – output is

enter image description here

In case you want the output as a comma separated list – use below

with output

enter image description here

You can use below cte (which is exact data sample from your question) for testing purposes

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