stored procedures - add distinct inside concat in mysql -
i have following query:
set @allochours =( select concat('select project_id,em.doj doj,em.dor dor , distinct r.alloc_date alloc_count,em.emp_code,em.dept_id employee_master em left outer join requestor_daily_report r on ( em.emp_code=r.emp_code) inner join project_master m on m.project_auto_id=r.project_auto_id inner join department_master d on m.dept_id=d.dept_id group date(r.alloc_date)'));
i error when use distinct inside have select distinct values of alloc_date. how can achieve me
Comments
Post a Comment