SQL-vsvswhere
1. Lecturers (LectID, Fname, Lname, degree).2. Lecturers_Specialization (LectID, Expertise).
SELECT L.LectID, Fname, Lname FROM Lecturers L, Lecturers_Specialization SWHERE L.LectID = S.LectIDAND COUNT(S.Expertise) >= ALL (SELECT COUNT(Expertise)FROM Lecturers_SpecializationGROUP BY LectID);
SELECT L.LectID, Fname, Lname FROM Lecturers L, Lecturers_Specialization SWHERE L.LectID = S.LectIDGROUP BY L.LectID, Fname, Lname HAVING COUNT(S.Expertise) >= ALL (SELECT COUNT(Expertise)FROM Lecturers_SpecializationGROUP BY LectID);
ITMISS
浮云间
慕慕森
相关分类