Find the distinct majors of students who have treasurer votes.
create table voting_record (treasurer_vote varchar, PRIMARY KEY (treasurer_vote)); create table student (major varchar, stuid varchar, PRIMARY KEY (major))
select distinct t1.major from student as t1 join voting_record as t2 on t1.stuid = t2.treasurer_vote