I have two tables I need to join.
Table 1
EmpNumber | Privilege1 | Privilege2 | Privilege3 | Privilege4
Table 2
EmpNumber | Privilege
In Table 1, EmpNumber is a unique primary key, in Table 2, there is no primary key. In Table 2, EmpNumber is repeated for each Privilege the employee has.
So a data set looks similar to this:
Table 1 (what it SHOULD look like)
EmpNumber | Privilege1 | Privilege2 | Privilege3 | Privilege4
001 | Y | N | Y | Y
002 | N | N | Y | N
003 | Y | N | Y | N
Table 2
EmpNumber | Privilege
001 | 1
001 | 3
001 | 4
002 | 3
003 | 1
003 | 3
I have Table 2. It's a dump from another program. I'd like the information to look as similar to Table 1 as possible, yet every which way I attempt, I get a type mismatch error. I understand that one field is numeric and the other is boolean, so yes, it is a type mismatch error. I'm having a major head case with this... it shouldn't be as difficult as I'm making it out to be, but I can't seem to wrap my head around it! Can ya'll help??
Table 1
EmpNumber | Privilege1 | Privilege2 | Privilege3 | Privilege4
Table 2
EmpNumber | Privilege
In Table 1, EmpNumber is a unique primary key, in Table 2, there is no primary key. In Table 2, EmpNumber is repeated for each Privilege the employee has.
So a data set looks similar to this:
Table 1 (what it SHOULD look like)
EmpNumber | Privilege1 | Privilege2 | Privilege3 | Privilege4
001 | Y | N | Y | Y
002 | N | N | Y | N
003 | Y | N | Y | N
Table 2
EmpNumber | Privilege
001 | 1
001 | 3
001 | 4
002 | 3
003 | 1
003 | 3
I have Table 2. It's a dump from another program. I'd like the information to look as similar to Table 1 as possible, yet every which way I attempt, I get a type mismatch error. I understand that one field is numeric and the other is boolean, so yes, it is a type mismatch error. I'm having a major head case with this... it shouldn't be as difficult as I'm making it out to be, but I can't seem to wrap my head around it! Can ya'll help??