r/DatabaseHelp • u/Gaming_Ruru • Feb 28 '18
One table relationship with 2 different table
There is an attribute in table A which tells which table will it get.
Ex:
Table A (Infos)
InfoID | Type Table B (Student)
StudentID | Name | Course |Table C (Employees)
EmployeeID | Name | Company |If type = 1 then get info in Table B(student)
InfoID | StudentID | Name | CourseElse get info in Table C(Employees)
InfoID | EmployeeID| Name | Company
1
Upvotes
View all comments
Show parent comment
1
u/Gaming_Ruru Mar 01 '18 edited Mar 01 '18
This is for our project.
Edit: Don't worry. I just ask the 2 questions 'cause if i'm not mistaken there's a processing time when querying.