Find the title of courses that have two prerequisites?
create table prereq (course_id varchar, PRIMARY KEY (course_id)); create table course (title varchar, course_id varchar, PRIMARY KEY (title))
select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2