Hello everyone,
I need help. I am trying to determine the four Tier Indicators base on 2 Fields, the Primary ID and The Relationship Code. Here is the logic.
Tier Indicators
1. Tier SGL: A Subscriber that has a “Relationship Indicator” of ‘01’, and does NOT share a “Primary ID” (only this subscriber is present – no ‘02’ or ‘03’)
2. Tier SAC: Subscriber who share a “Primary ID” and have the “Relationship Indicators” ‘01’ and ‘03’ (but NOT ‘02’)
3. Tier SAS: Subscriber who share a “Primary ID” and have the “Relationship Indicators” ‘01’ and ‘02’ (but NOT ‘03’)
4. Tier FAM: Subscriber who share a “Primary ID” and have the “Relationship Indicators” ‘01’, ‘02’, ‘03’ (ALL 3 indicators must be present)
I would like to create a query that will be able to determine the Tier codes but don’t know how? How do you determine if the Primary ID is shared or not shared? Do I use a iif function or something else? Any help will be appreciated.
Thank you,
I need help. I am trying to determine the four Tier Indicators base on 2 Fields, the Primary ID and The Relationship Code. Here is the logic.
Tier Indicators
1. Tier SGL: A Subscriber that has a “Relationship Indicator” of ‘01’, and does NOT share a “Primary ID” (only this subscriber is present – no ‘02’ or ‘03’)
2. Tier SAC: Subscriber who share a “Primary ID” and have the “Relationship Indicators” ‘01’ and ‘03’ (but NOT ‘02’)
3. Tier SAS: Subscriber who share a “Primary ID” and have the “Relationship Indicators” ‘01’ and ‘02’ (but NOT ‘03’)
4. Tier FAM: Subscriber who share a “Primary ID” and have the “Relationship Indicators” ‘01’, ‘02’, ‘03’ (ALL 3 indicators must be present)
I would like to create a query that will be able to determine the Tier codes but don’t know how? How do you determine if the Primary ID is shared or not shared? Do I use a iif function or something else? Any help will be appreciated.
Thank you,
Attachments
Last edited: