i have sql statement like this
SELECT DISTINCT results_sp_08.material_number FROM results_sp_08 INNER JOIN courses ON results_sp_08.material_number = courses.material_number INNER JOIN users ON results_sp_08.id = users.id AND results_sp_08.doctor = 'xx260'
i need alternative way to DISTINCT in to use it in MySQL version: 4.1.22 ?
is there another way or trick?
Like Joel, your best bet is to add the GROUP BY clause. In your case