Skip to content
Advertisement

How to make dummy variables for a same data id in IMPALA SQL

I have a dataset in impala SQL like this:

enter image description here

And I want to look like this:

enter image description here

I have tried using CASE WHEN but results in duplicates for those ids where has 2 values different.

Can someone help me with this issue.

Thenk you much in advance.

Advertisement

Answer

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