Number of the same contents of cells in a column of a table by a .

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Ich möchte in einer Abfrage ermitteln, wieviele Personen in einem Projekt
eingesetzt werden, wobei die jeweiligen Personen in mehreren Datensätzen mit
unterschiedlichem Datum vorhanden sind.
 
Jakob Schog said:
Ich möchte in einer Abfrage ermitteln, wieviele Personen in einem Projekt
eingesetzt werden, wobei die jeweiligen Personen in mehreren Datensätzen
mit
unterschiedlichem Datum vorhanden sind.
möglicherweise?

Q1:

SELECT
DISTINCT
Personen,
Projekt
FROM
yurtable;

Q2:

SELECT
Projekt,
Count(*) AS PersonenCnt
FROM
Q1
GROUP BY
Projekt;
 
Es tut mir leid.

Between my 2 semesters of German
and Babel Fish, I *might* be able to
help with a simple question.

But, were you aware of the newsgroup

microsoft.public.de.access

which may be better at full explanations
for more difficult questions.

If your Stundenerfassung example data
all had Teil_ID = 11

I thought you wanted your query to produce

Teilpro ProjekCount
Ausbesserung 2

i.e., there were 2 distinct names for the project.

If that was correct, then why can you not
join the 2 tables in "Q1" to get distinct
project/names?
 
Back
Top