Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the below table -
City | ID | Capacity | HC | MAXCAPACITY | COMBINEDHC | CapacityRank | Output |
Bangalore | BLR09 | 408 | 318 | 408 | 551 | 1 | 318 |
Bangalore | BLR86 | 265 | 233 | 2 | 233 | ||
Boston | BOS04 | 402 | 234 | 402 | 300 | 1 | 300 |
Boston | BOS50 | 114 | 66 | 2 | 0 |
Need the Output as above -
If (MAXCAPACITY > COMBINEDHC, COMBINEDHC ,
If (MAXCAPACITY < COMBINEDHC, HC))
Also - if MAXCAPACITY > COMBINEDHC only CapacityRank with ranl 1 should have the value and other one should be 0.
Thank you so much.
@swuel @Jagmeet_singh @Sunny @randres_talend @Anil_Babu_Samineni
@Anil_Babu_Samineni - Awesome Anil sir.You are the best!