How do I use access queries to select records which appears 3 time

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

Guest

Hello,

I have set up a database to record staff sickness, and I would like to
create a query that pulls out records where the staff member has 3 or more
occurences i.e. a query that retrevies records where the staff member appears
3 times.

How do I do it?

Many Thanks
Paul
 
Dear Paul:

Build a "totals query" that counts how many instances you have for each
staff member. Filter it for >= 3.

Tom Ellison
 
SELECT SDays.Name, Count(SDays.Name) AS CountOfName
FROM SDays
GROUP BY SDays.Name
HAVING (((Count(SDays.Name))>=3));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top