Skip to content
Advertisement

distinct and Over partition

i am working on a query in bigquery and i have the following problem. The query I have is the following:

the problem is that the “DISCINT” does not eliminate the duplicate data, instead if I eliminate the OVER PARTITION and leave the query as follows, if it eliminates the repeated data.

clearly it is a problem of how the discint and the OVER PARTITION work, but I can’t find a solution

Advertisement

Answer

you need to do this :

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