AnnetteB1305
Technical User
Hello,
I have a mysql statement that works fine in my query programme (Navicat) however when I try and put this in a command in crystal it is throwing an error
The statement is
set @rownum=0
Select @rownum := @rownum +1 as ranknum, cust_name, count(distinct callref) as rank from opencall where logdate like '%/08/2011%'
and companyname="McDonald's Nederland" group by cust_name order by rank desc
Any help would be appreciated
Annette
I have a mysql statement that works fine in my query programme (Navicat) however when I try and put this in a command in crystal it is throwing an error
The statement is
set @rownum=0
Select @rownum := @rownum +1 as ranknum, cust_name, count(distinct callref) as rank from opencall where logdate like '%/08/2011%'
and companyname="McDonald's Nederland" group by cust_name order by rank desc
Any help would be appreciated
Annette