List the number of Judges graduated from each law school.
The tables are Presidents
, Judges
, and Appoints
. Judges
has columns JName
, DateOfBirth
, LawSchool
. I have tried the following statement and am running into an error I am not sure I understand completely:
SELECT jname, COUNT(jname)
FROM Judges J1, Judges J2
WHERE J1.LawSchool = J2.LawSchool AND J1.Jname != J2.Jname;
The error is: ERROR 1052: Column 'jname' in field list is ambiguous
.