I have to do uni project for database it is about medical center. Therefore, I made a conceptual and physical model, but now I have to model the database.
So i have relations patients
, doctorID
, general-practitioners
, doctors-specialists
, polyclinic
and so on. The idea of my professor is that relation doctorID
(that relation will only have doctorID atribute) give ID
for both general-practitioners
(ID,name,phone) and doctors-specialists
(ID,name, speciality).
Now my problem is how to set the ID
for general-practiotioners
to be between 0 - 100 and for the doctors-specialist
to be from 101 to 200. In addition, how to make that automated if someone starts writing new doctor-specialist
that in my foreign/primary key attribute that he shows only from 101-200.