ジェニファーウィドムのdbclassで、彼女は大学を応募者の最高のGPAとペアにする例を示しています。SQLは以下のとおりです。
select college.cname, state, gpa
from college, apply, student
where college.cname = apply.cname
and apply.sid = student.sid
and gpa >= all (select gpa
from student,apply
where student.sid = apply.sid
and apply.cname = college.cname);
応募者の最小GPAとペアになっている大学を見つけるためのクエリを作成する方法を知りたいです
私はこれが以下のようにできることを知っています
select college.cname, state, gpa
from college, apply, student
where college.cname = apply.cname
and apply.sid = student.sid
and gpa = (select min(gpa) from student);
しかし、 minを使用せずにこれを行うにはどうすればよいですか?