Eirikur Eiriksson (10/20/2014)
Some code refactoring on the previous set based solution to fulfil all the requirements, several orders of magnitude faster than string manipulation although it has not been tested on very large set.😎
Careful now. If you have another CategoryID that does meet the requirements, it won't show.
--Jeff Moden
Change is inevitable... Change for the better is not.