I am trying to create a formula to check if the account have the Type Code "ZSND"...if it doesnt then the account will be flag. I want my query just to return distinct account as shown below.
AccountID is from Table1 and Type Code is from Table2.....link by a uniqueID that both table share
AccountID | TypeCode |
account1 | ZLNR |
account1 | ZADV |
account1 | ZLNC |
account2 | ZLNR |
account2 | ZSND |
account3 | ZLNR |
account3 | ZLNR |
account3 | ZSND |
account3 | ZLNR |
account4 | ZLNR |
account4 | ZSND |
account5 | ZLNR |
Result I want
Account | Flag |
account1 | Yes |
account2 | No |
account3 | No |
account4 | No |
account5 | Yes |
thank you in advance!