I need to build a temp table and as it is being built I'm running into problems identifying uniqueness.
I have a list of customers with the PK would be Acct and Mstr_Acct
ACCT # Master ACCT Grouping
1 1 a
2 1 b
3 3 a
4 3 NULL
5 5 NULL
What I need is just a Y/N flag in the grouping - if the ACCT Number Belongs to a grouping Then Y if Not then N so Master Acct 3 would have a Y and Master Acct 5 would have a N
But as it is right now if i do left joins it will create an acct / master acct / Grouping combonation - all I want is Y/N....
↧