I have a table with fields named SVCode and LocationCode. I want to be able to focus on one all of the SVCodes listed in the column and check to see if their LocationCode is different.
Example:
LocationCode:
107654403
107654403
107653802
107653802
107656502
126515001
128030852
126515001
SVCode:
STN10
STN10
STN10
STN10
STN10
STN10
GIN04
GIN04
GIN04
Each row matches up. LocationCode 107654403 with STN10 and so forth.
I want to basically create a new column called MultipleLocations and if a SVCode has more than one distinct Location code then set the MultipleLocation column = 1 else 0
Any help on doing so?
LocationCodeandSVCodecolumns in different tables? If so, how do you know which one corresponds with which? Also, can you provide an example of what the output should be for your sample data above?