|
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 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....
(comments are locked)
|
(comments are locked)
|
|
So all you want is In which case, something like this: Setting up temporary table & data and the query itself:
(comments are locked)
|

