Suppose I have two tables Doctor & Doctor_department
Doctor
Doctor_department
a(priority=1), b(priority=2), c(priority=3)
In Doc
Doc