Well i still get the same result. What is weird is that if i execute this statement only for this table i get the right results. However once i start joining other tables i get bad results.
So the one below works fine"
select prospect_id as 'ID',
CONCAT_WS(' ',prospect_fn,prospect_ln) as...
I have been having some trouble with the query below.
select a.advisor_ao as 'AO',
case c.existing_client when 'feps' then count(c.existing_client) else 0 end as 'total'
from advisor_tb a left join company_tb b on a.advisor_id = b.advisor_id
left join comp_seminar_ca_tb c on b.company_id =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.