Skip to content
Advertisement

How can I translate this legacy SQL to standard SQL in BigQuery?

I need to translate this to BigQuery. Can anyone help? Thanks

This is the error I’m getting.

The Google BigQuery Standard SQL database encountered an error while running this query. Query execution failed: – Syntax error: Expected “(” but got identifier “DATEDIFF” at [2:25]

Advertisement

Answer

Try this (docs):

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