Skip to content
Advertisement

get rows that have the same value column

I’m trying to select rows that have the same column values using BigQuery on Githubs public data. I’d approach it like so using SQL server but I am getting “Correlated subqueries that reference other tables are not supported unless they can be de-correlated, such as by transforming them into an efficient JOIN.” error message.

I’ve also tried performing self-joins like so:

But I’m getting timeout errors for this. What’s the correct way to achieve this?

Advertisement

Answer

I think you are looking for below (at least this is a direct translation of your original query to one that actually works while preserving the logic)

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