Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 267757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T23:36:03+00:00 2026-05-11T23:36:03+00:00

I have a table with an associate_id and date fields. I want to get

  • 0

I have a table with an associate_id and date fields. I want to get how many the associates have for each date. For example if this was my Table:

date    associate_id
2009-07-08  10
2009-07-08  113
2009-07-09  113
2009-07-09  113

I want results like this:

date    associate_id    per_date
2009-07-08  10              1
2009-07-08  113             1
2009-07-09  113             2

I tried this but it wasn’t right:

SELECT 
            associate_id, date, COUNT(date) as per_date
            FROM 
            tracking
            GROUP BY
            date 
            ORDER BY
            date

Also I am sure it needs to be a separate call but I also need a list of the DISTINCT associate_id’s that were pulled.

Thanks!!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T23:36:04+00:00Added an answer on May 11, 2026 at 11:36 pm

    Try this:

    Select date, associate_id, count(*) as per_date
    From tracking
    Group By assoicate_id, date
    Order by date
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 165k
  • Answers 165k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes, you do not have a backing field... this is… May 12, 2026 at 1:13 pm
  • Editorial Team
    Editorial Team added an answer For reference tables, you need to either re-assign all the… May 12, 2026 at 1:13 pm
  • Editorial Team
    Editorial Team added an answer It far easier to use the scripting runtime which is… May 12, 2026 at 1:13 pm

Related Questions

EDIT : To people building tagging systems. Don't read this. It is not what
I write the code for my own website as an educational/fun exercise. Right now
Although the actual schema is a bit more complex, the following should be a
I have the following tables within a database, that I am using to store

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.