I have the following query being passed to Access. I want to see tallies of x in relation to their owners y, even if their tally is 0. Currently it only shows x & y where the tallies created by Count() are greater than 0.. Is Access limiting me, or is it just SQL in general.

Forgive this for being off topic but I know alot of monks do DBI work (ie SQL).
SELECT Count(Referrals.x) AS numberOfx, Referrals.y FROM Referrals WHERE (((Referrals.y) Is Not Null) AND ((Referrals.[Today's Date])>#7/ +29/2003#)) GROUP BY Referrals.y ORDER BY Count(Referrals.x);
Is there any way I can modify this code to properly grab the tallies even when they tally is 0?

update (broquaint): title change (was Displaying coutned columns when the count is 0)


In reply to (OT) Displaying coutned columns when the count is 0 by Grygonos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.