I want to list both the ID, and the CODE. It’s possible to have more codes, but I only want CODE 1 and CODE 2.
If I use the sql in the original post, it gives me just the ID (obviously). I know it’s correct because I already know which IDs have which codes.
It’s obviously necessary, I wouldn't...