D
Dazed And Confused
I know I should know the answer to this, but I don't, so at the risk
of sounding stupid, I hope someone can please set me straight once and
for all.
*
I am writing a query against table tblenrollment. I am querying two
fields: student_id and enrollment_date. I want to know the number of
people enrolled on or after 01/01/08.
*
In design view I have the two fields side by side. In the "Total"
field for the student_id I
specifiy Count. For the enrollment_date in the total field I specify
"Where" and in the criteria field, I type >=01/01/2008. The answer I
get back is 257.
*
If I try the exact same query but instead of Count in the student_id
Total field, I specifiy Group By and under the query properties I
specify that it should be distinct (Select Distinct student_id). I
don't change the enrollment_date field. The answer that comes back is
252.
*
This happens to me a lot when I think I am doing a simple count of ID
numbers. Can someone please explain to me why there is always a
difference? What am I doing wrong? There is obviously something
about the Count function that I don't get.
Thank you for your time.
S
of sounding stupid, I hope someone can please set me straight once and
for all.
*
I am writing a query against table tblenrollment. I am querying two
fields: student_id and enrollment_date. I want to know the number of
people enrolled on or after 01/01/08.
*
In design view I have the two fields side by side. In the "Total"
field for the student_id I
specifiy Count. For the enrollment_date in the total field I specify
"Where" and in the criteria field, I type >=01/01/2008. The answer I
get back is 257.
*
If I try the exact same query but instead of Count in the student_id
Total field, I specifiy Group By and under the query properties I
specify that it should be distinct (Select Distinct student_id). I
don't change the enrollment_date field. The answer that comes back is
252.
*
This happens to me a lot when I think I am doing a simple count of ID
numbers. Can someone please explain to me why there is always a
difference? What am I doing wrong? There is obviously something
about the Count function that I don't get.
Thank you for your time.
S