Currently trying to create a simple join in Oracle but it claims that the "Column Ambiguously Defined".
After research, we have prefaced the column with their table names but it continues to throw this error.
Here's our statement:
SELECT DOCTOR_ID, TYPEOFCARE FROM DOCTOR
INNER JOIN PRIMARY_CARE
ON DOCTOR.DOCTOR_ID = PRIMARY_CARE.DOCTOR_ID;
Also provided is an image of our er diagram showing the two tables and their relationship:
Any help is much appreciated.