Hi i'm running a query like this:
select sales_representative , sum(if(product_id = '3535',1,0)) from sales group by sales_representative
That will give me how much of a given product a sales rep. sold, but i want to know how to list the sales reps. that haven't sold anything yet i think that i can use my sales reps table but i don't know how to make it.
I try:
select saler from sales_reps, sales
where sales_reps.saler != sales.sale_representative group by
saler
but didn't work any idea?
thanks!