hi,
someone on this group made me a query which worked a treat. i have tried
changing it but instead of returning the expected 700 records it returns
half a million.. with lots of duplicates. (there isnt even that many
records in the table). Excuse the phrase 'smellfone' it is a private Joke!
here is the query that works
select * from smellfonesales left join commissions using (imei) where
commissions.imei is null AND smellfonesales.TimeStamp like '%2004%'
and here is the one i am trying but it dont work. hopefully you will be
able to work out what I am trying to achieve (which is to get supplier info
from a seperate table linked by field imei)
select smellfonesales.*,smellfonecontracthandsets.supplie r from
smellfonesales,smellfonecontracthandsets left join commissions using (imei)
where commissions.imei is null AND smellfonesales.TimeStamp like '%2004%'
this query gices results.. but way too many and lots of duplicates for some
reason...
any help is appreciated.
--
Sean Browne
NDS Ltd
07971 175 354