relational database - alternative to intersect operation in mysql -


when try below code got error

"error 1064 (42000): have error in sql syntax; check manual corresponds mysql server version right syntax use near 'intersect select sc1.section_identifier,sc2."

and searched in internet , found new fact mysql doesn't support intersect operation. how can fix code having same function 'intersect'. please me!!

select g1.section_identifier, g2.section_identifier grade_report g1, grade_report g2 g1.student_number=g2.student_number ,   g1.section_identifier<g2.section_identifier intersect select sc1.section_identifier,sc2.section_identifier section sc1, section sc2 sc1.course_number=sc2.course_number ,      sc1.section_identifier<sc2.section_identifier; 


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -