You are not using any aggregate function in your SELECT clause & on top of that you are already doing DISTINCT alongwith GROUP BY clause (both of which has the same impact)
You can solve the error by either removing the GROUP BY clause altogether or mention all the columns in the GROUP BY caluse (and removing the DISTINCT in select clause)...
You are not using any aggregate function in your SELECT clause & on top of that you are already doing DISTINCT alongwith GROUP BY clause (both of which has the same impact)
You can solve the error by either removing the GROUP BY clause altogether or mention all the columns in the GROUP BY caluse (and removing the DISTINCT in select clause)...