Show the ids of all the faculty members who participate in an activity and advise a student.
create table student (facid varchar, advisor varchar, PRIMARY KEY (facid)); create table faculty_participates_in (facid varchar, advisor varchar, PRIMARY KEY (facid))
select facid from faculty_participates_in intersect select advisor from student