sammybee77
Technical User
Please could someone look at my code below and tell me why it is returning all the ones where sk_code_id = 2618
select distinct sk_id
from sk, people, business
where sk_code_id <> 2618
and sk_id = peop_id
and (peop_bs = bs_id)
and (bs_name like 'ABC LTD')
and (peop_type = 'C')
Many thanks
Sam
select distinct sk_id
from sk, people, business
where sk_code_id <> 2618
and sk_id = peop_id
and (peop_bs = bs_id)
and (bs_name like 'ABC LTD')
and (peop_type = 'C')
Many thanks
Sam