P
papa jonah
I want to make a query that simply displays the number of times each
organization is mentioned in the records.
I have a database of records, each one of which has a organization
assigned. I want the query to say
org number
maint 25
ops 13
safety 45
The following seems to work However, I want to be able to add other
fields to limit the search based on criteria. As soon as I add any
others, I get a long list of repeated organizations that each have a 1
in the number column.
SELECT [Division group cross table].Division, Count(Division.[ORPS
Designator]) AS num
FROM [ORPS Data] LEFT JOIN (Division LEFT JOIN [Division group cross
table] ON Division.Div = [Division group cross table].[Group/Org]) ON
[ORPS Data].[ORPS Designator] = Division.[ORPS Designator]
GROUP BY [Division group cross table].Division;
organization is mentioned in the records.
I have a database of records, each one of which has a organization
assigned. I want the query to say
org number
maint 25
ops 13
safety 45
The following seems to work However, I want to be able to add other
fields to limit the search based on criteria. As soon as I add any
others, I get a long list of repeated organizations that each have a 1
in the number column.
SELECT [Division group cross table].Division, Count(Division.[ORPS
Designator]) AS num
FROM [ORPS Data] LEFT JOIN (Division LEFT JOIN [Division group cross
table] ON Division.Div = [Division group cross table].[Group/Org]) ON
[ORPS Data].[ORPS Designator] = Division.[ORPS Designator]
GROUP BY [Division group cross table].Division;