Say for example I have a table for Person. This table looks as such:
create table Person (id int not null primary key,
FirstName varchar(20) not null,
LastName varchar(20) not null
)
The ISA Hierarchy has 2 extended types, Staff and Student, underneath it as follows:
create table Staff (
id int not null primary key references Person(id),
department varchar(20) not null
)
create table Student (
id int not null primary key references Person(id),
course varchar(20) not null
)
From this current implementation, I could possibly create a Student entry and Staff entry both related to the same Person ID. I'm trying to make it exclusive so that a Person is only either allowed to be Staff or Student but I'm a bit lost on how to do that.
Any input is appreciated !