Skip to content
Advertisement

BigQuery SQL conditional IN

I have been trying to construct a conditional IN like below, but this gives me the scalar subquery produced more than one element error. How should I approach this type of query instead? The tables are not related.

Advertisement

Answer

Try this below-

As your other tables are not related, you can try this below logic-

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