I have two tables:
EMP
emp_id | Name | Surname |
1 | Bob | Park |
2 | Annie| South |
3 | Eric | P. |
PROJECT
proj_id | Tester_1 | Tester_2 | Tester_3 |
1 | 2 | 3 | 1 |
Now I am trying to make a view, so that I have the following
proj_id | Tester_1_Name | Tester_2_Name | Tester_3_Name
1 | Annie | Eric | Bob
You just have to Join
As a View…
NOTE: As others mentioned, your database design violates First Normal Form “There should be no repeating groups”, which means that a table should not contain multiple columns which represent multiple instances of some attribute (like your tester_1, tester_2, tester_3). Check out this link: database normalization for more info.