P
PeterW
I am sure I must be missing something simple here but am lost if anyone can
help.
I have an database that tracks enquiries and have a table 'source' for where
enquiries can come from and a table 'enquiries' that logs actual enquiries. I
want to see which sources aren't generating enquiries and am using the
following
SELECT tblSource.Source, [Brochure Requests].Source
FROM tblSource LEFT JOIN [Brochure Requests] ON tblSource.Source =
[Brochure Requests].Source
WHERE ((([Brochure Requests].DateSent) BETWEEN Date() and Date()-28))
Order By tblSource.Source;
For some reason this only returns records with a match and I want to list
all the sources and see null values for no matches - I have inherited this
database so don't know if there can be any other settings that could be
stopping this working.
Ideally I would like to count the No of enquiries by source and can get this
to work with just the enquiries table but not when I join the two - is this
possible to do when joined? ie can null values show 0?
help.
I have an database that tracks enquiries and have a table 'source' for where
enquiries can come from and a table 'enquiries' that logs actual enquiries. I
want to see which sources aren't generating enquiries and am using the
following
SELECT tblSource.Source, [Brochure Requests].Source
FROM tblSource LEFT JOIN [Brochure Requests] ON tblSource.Source =
[Brochure Requests].Source
WHERE ((([Brochure Requests].DateSent) BETWEEN Date() and Date()-28))
Order By tblSource.Source;
For some reason this only returns records with a match and I want to list
all the sources and see null values for no matches - I have inherited this
database so don't know if there can be any other settings that could be
stopping this working.
Ideally I would like to count the No of enquiries by source and can get this
to work with just the enquiries table but not when I join the two - is this
possible to do when joined? ie can null values show 0?