As u can see from my table, the StaffCode and OuCode combination is a unique entry. My question is, how can i query for the Staffcode(s) to select those records with both OuCode 1 and 2 present. This is what i've done so far and it returned an empty result.
WHERE OuCode=1 AND OuCode=2;
Hope to find the right SQL syntax for this. Thanks.
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.