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

  • Home
  • SEARCH
  • 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
  • 2 Views
  • 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

Related Questions

I have a table of items, each of which has a date associated with
I have a table with many IDs and many dates associated with each ID,
I have a MySql table named 'comments' : id | date | movie_id |
i have a problem with a query, for example with this one i can
I have a problem. I have a table of support tickets (wh_task). Each task
I have a typical table, e.g. id(int) name(varchar) address(varchar) date(datetime) I also have a
I need to have a datetimepicker to popup onclick of the date input fields,
I have a table containing some names and their associated ID, along with a
I have a table where I have datetimes associated with an ID: ┌────────────────┬──────────────────────┐ │
Consider I have a table with notes which could be associated with zero or

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.