Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Posts
    5

    Unanswered: Searching for a specific ´group by´ query

    Hi,

    I´ve got the following table:
    Click for table

    What I want now I a query which shows Datum_do, medewerker (=dutch word for ´empoyee´) and the amount of dossiers. The result would be that you can see how many dossiers a medewerker got a specific date.

    The result should somehow look like this:
    Datum_do | Medewerker | Amount
    2005-11-10 | Hans | 23
    2005-11-10 | Gerard | 11
    2005-11-10 | Arie | 4
    2005-11-11 | Hans | 2
    2005-11-12 | Hans | 8
    2005-11-12 | Gerard | 4
    2005-11-12 | Lisa | 12
    2005-11-10 |Hans | 30
    etc etc

  2. #2
    Join Date
    Apr 2005
    Location
    Baltimore, MD
    Posts
    297
    Code:
    SELECT Datum_do, Medewerker, COUNT(*) AS Amount
    FROM voortgang
    GROUP BY Datum_do, Medewerker

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •