I have a table that looks like below:
Need to convert the same into the below format:
The data is at A,B, C level. Tried using case when as shown below but it is resulting in multiple rows. So thinking of using a pivot.
Select a,b,c,
case when D = N and E = 1 then N1 = value,
case when D = N and E = 2 then N2 = value,
case when D = O and E = 1 then O1 = value,
case when D = O and E = 2 then O2 = value,
Any help would be appreciated. Thank you!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…