I have a query that looks like this:
Select x.date, x.id, x.phone,
x.product, xy.policy,xy.date
from (y left join z
on y.customer_id=z.customer_id)
left join x
on x.id=z.id
left join xy
on xy.id=x.id
where x.date > '2000-01-01'
and y.detail =foo
and xy.policy like 'foo_____'
and xy.policy_type = foo;
How can I count the number of rows this returns?
I tried using SQL_CALC_FOUND_ROWS but I can't quite fit it into this query.
Any help would be greatly appreciated.
Thanks, Stefan.
ID, ColA, TotalResult,1,1,4,1,2,4,1,3,4,1,4,4?