Consider the following relational schemas (primary keys are in bold):
staff(staff id, name, monthly salary, address, phone number, role id);
role(role id, role name, role desc);
patient(pat id, pat name, pat address, pat contact, pat blood type);
appointment(date, time, staff id, pat id);
How do you write the list of names of ALL patients who had SEPARATE appointments with DIFFERENT doctors in relational algebra?
N.B. this is a question taken from exam revision that I'm stuck with!
P.S. a doctor can be found by selecting role_name="Doctor"