Good Day.
Im having trouble when i used table adapter configuration wizard. a made a query that look like this:
select a.aDate,S.TimeIn,s.TimeOut,ifnull(timediff(s.timeout,s.timein),0) as time
from
(
select '2013-08-01' + INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as aDate
from (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as a
cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as b
cross join (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) as c
) a
left JOIN
(SELECT * FROM LOGS WHERE LOGS.PROFID=2) as
S ON A.aDATE=S.ADATE
where a.adate between '2013-08-01' and '2013-08-31'
this query is working fine but when i insert this in my wizard i have this following error.
Error in SELECT clause: alias not recognized.
Error in list of function arguments: 'TIME' not recognized.
Error in list of function arguments: ')' not recognized.
Unable to parse query text.
all of my qury is working except on this. Please help.