Mysql – SQL distinct values from multiple columns
I am trying to get distinct values from each column and not distinct row values. My Query is: SELECT DISTINCT ac.admin_id , sc.student_id , tc.teacher_id from contact c join admin_contacts ac on ac.`contact_id` = c.id join student_contacts sc on sc.`contact_id`=…