I'm really struggling with the syntax here...
I'm trying to get the following data:
Col1 Col2
001 a
001 b
002 a
003 b
004 a
To show as follows
Col1 Col2 Col3
001 a True
001 b True
002 a False
003 b False
004 a False
I'm in big query and know my statement isn't correct but was looking at something like this:
case
when Col1 is not null then
case
when Col2 = 'a' and Col2 = 'b' then "True"
else "False"
end
Duplicates
I'm sure the issue is with the first condition, but can't figure out how to handle it. Could someone please give me some direction?