A
Adam Pedder
I have the following query:
SELECT dbo_Lightboxes.lightboxname, dbo_Lightboxes.lightboxid,
Count(dbo_lightpic.pictureid) AS CountOfpictureid
FROM dbo_Lightboxes INNER JOIN dbo_lightpic ON dbo_Lightboxes.lightboxid =
dbo_lightpic.lightboxid
GROUP BY dbo_Lightboxes.lightboxname, dbo_Lightboxes.lightboxid,
dbo_Lightboxes.userid
HAVING (((dbo_Lightboxes.userid)=[?]));
Simple enough, it returns the lightboxname and lightboxid for any given
userid, along with a count of the number of the number of pictures in it.
My problem is that it only returns results for light boxes that have
pictures in them, whereas I want it to return them with a count of 0.
Can anyone push me in the right direction?
Thanks,
Adam
SELECT dbo_Lightboxes.lightboxname, dbo_Lightboxes.lightboxid,
Count(dbo_lightpic.pictureid) AS CountOfpictureid
FROM dbo_Lightboxes INNER JOIN dbo_lightpic ON dbo_Lightboxes.lightboxid =
dbo_lightpic.lightboxid
GROUP BY dbo_Lightboxes.lightboxname, dbo_Lightboxes.lightboxid,
dbo_Lightboxes.userid
HAVING (((dbo_Lightboxes.userid)=[?]));
Simple enough, it returns the lightboxname and lightboxid for any given
userid, along with a count of the number of the number of pictures in it.
My problem is that it only returns results for light boxes that have
pictures in them, whereas I want it to return them with a count of 0.
Can anyone push me in the right direction?
Thanks,
Adam