Counting and Unique values

zozew

Registered User.
Local time
Today, 23:20
Joined
Nov 18, 2010
Messages
199
Hi, I get this result:

unique.gif


from this SQL string:

Code:
SELECT tblInmateCases.BR
FROM tblInmatesProfile INNER JOIN (tblInmateCases INNER JOIN tblInmateHearings ON tblInmateCases.CaseNumberID = tblInmateHearings.CaseNumberID) ON tblInmatesProfile.InmateID = tblInmateCases.InmateID
WHERE (((tblInmateHearings.Hearings)=[Forms]![scheduleChooserForm]![dateForSchedule]));
How would i get a new result with only the unique BR values in one field and in the second field a total of records for each BR value.

So how would i go about to change the SQL to get this instead:

BR, Total
14, 4
16, 4
18, 3
20, 7



Do i need to break it up in different queries somehow?

thx for any suggestions
 

Users who are viewing this thread

Back
Top Bottom