I have a database model. I have a table Employe with the id, name, first name etc of all employees. I have a table teacher with link to employe. This table content only teacher from employe. With his Id, name and Firstname.
This table named teacher like a View. But, i have 2 foreing keys to this table.
Its impossible to create a foreing key to a view. I Don't know what is the solution to have the table Teacher with only the teachers from the table Employe.
And the foreing keys to the table teacher.
If you have an idea. Thanks you.
This table named teacher like a View. But, i have 2 foreing keys to this table.
Its impossible to create a foreing key to a view. I Don't know what is the solution to have the table Teacher with only the teachers from the table Employe.
And the foreing keys to the table teacher.
If you have an idea. Thanks you.