Hello everyone,
Earlier when i used sugarcrm 4.5 with MSSQL, i had used the following query for generating a report:
select o.name as "Opp. name",u.first_name+' '+u.last_name as "Opp. Assigned to"
from opportunities o,users u
where sales_stage='Prospecting'
and u.id=o.assigned_user_id
and convert(datetime,convert(char(11),o.date_entered,1 01)) >= convert(datetime,$P{startdate},101)
AND convert(datetime,convert(char(11),o.date_entered,1 01)) <= convert(datetime,$P{enddate},101)
group by o.name,u.first_name,u.last_name
order by u.first_name,u.last_name
But now when im using Mysql it is throwing some error:
are there any syntax changes in the convert() for MySQL...
Please help me in solving this issue
Thanks in advance


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks