When I try below code I got error like
"ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'intersect select sc1.section_identifier,sc2."
and I searched in internet and found new fact that mysql doesn't support intersect operation. How can I fix my code having same function with 'intersect'. Please help me!!
select g1.section_identifier, g2.section_identifier
from grade_report g1, grade_report g2
where g1.student_number=g2.student_number and
g1.section_identifier<g2.section_identifier
intersect
select sc1.section_identifier,sc2.section_identifier
from section sc1, section sc2
where sc1.course_number=sc2.course_number and
sc1.section_identifier<sc2.section_identifier;