I have searched through all the various postings but haven't found what I'm looking for.
I am trying to remove duplicate values from a string or array. Thus, producing a new, clean string/array without any duplication.
Heres the tricky part :
I want to produce one list of EmployeeID's from two different tables. But no duplicating values.
To populate my array I am performing the query "Select Distinct EmployeeID From TableA". No problem here. I then populate a second array with Distinct CustomerID From Table B. Then joining the two arrays together into one string.
The problem is I still have duplicating ID's if the same ID exists in both tables.
I'm probably overlooking a really simple way of doing this, but any help will be great.
Thank you!
I am trying to remove duplicate values from a string or array. Thus, producing a new, clean string/array without any duplication.
Heres the tricky part :
I want to produce one list of EmployeeID's from two different tables. But no duplicating values.
To populate my array I am performing the query "Select Distinct EmployeeID From TableA". No problem here. I then populate a second array with Distinct CustomerID From Table B. Then joining the two arrays together into one string.
The problem is I still have duplicating ID's if the same ID exists in both tables.
I'm probably overlooking a really simple way of doing this, but any help will be great.
Thank you!