Skip to content
Advertisement

If statement Big Query

I’m quite new user of big query with basic SQL skills. I would like to build a query that is using a conditional IF statement to add a new value in one of my field

Here is the data that i have

I was thinking about the following request :

i’m trying to figure out, but impossible to set the right syntax and logic

Many thanks for your help Much appreciated !

Advertisement

Answer

Use a case expression:

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