I am managing a scholarship database. In it, there are student IDs. A scholarship is assigned to a student by semester, so if a student is here in the fall and spring semesters, they are entered twice in two different fields. I need access to count each student only ONE time. I am trying to use the count distinct function, but it is not working for me. My statement looks something like this:
SELECT Count (DISTINCT t_scholarship_offered.student_id)
I keep getting this error message: Syntax error (missing operator) in query expression 'Count (Distinct......)' What am I doing wrong? Thanks in advance!
2007-03-08
03:17:49
·
3 answers
·
asked by
miss_fatbooty
2
in
Computers & Internet
➔ Programming & Design
SELECT COUNT (Distinct student_id)
That is the jist of the statement that it keeps telling me there is an error in.
2007-03-08
03:37:58 ·
update #1