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 6981549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:10:18+00:00 2026-05-27T18:10:18+00:00

I have a database with log entries, like: CREATE TABLE `cheaters` ( `id` bigint(20)

  • 0

I have a database with log entries, like:

CREATE TABLE `cheaters` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `date` datetime NOT NULL,
  `guid` int(10) unsigned NOT NULL,
  `type` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `guid` (`guid`)
) ENGINE=InnoDB AUTO_INCREMENT=973997 DEFAULT CHARSET=utf8

Sample data:

mysql> select * from cheaters LIMIT 10;
+----+---------------------+-------+-------------------------------+
| id | date                | guid  | type                          |
+----+---------------------+-------+-------------------------------+
|  1 | 2011-12-15 18:16:16 | 17567 | Speed-Hack detected           |
|  2 | 2011-12-15 18:16:28 | 69460 | Speed-Hack detected           |
|  3 | 2011-12-15 18:16:29 | 82077 | Walk on Water - Hack detected |
|  4 | 2011-12-15 18:16:50 | 55710 | Speed-Hack detected           |
|  5 | 2011-12-15 18:16:50 | 84229 | Speed-Hack detected           |
|  6 | 2011-12-15 18:16:52 | 55848 | Speed-Hack detected           |
|  7 | 2011-12-15 18:16:53 | 48774 | Speed-Hack detected           |
|  8 | 2011-12-15 18:16:54 | 48774 | Speed-Hack detected           |
|  9 | 2011-12-15 18:16:56 | 48092 | Speed-Hack detected           |
| 10 | 2011-12-15 18:16:56 | 81389 | Speed-Hack detected           |
+----+---------------------+-------+-------------------------------+

I want to get some thing like:

+------------+---------------------+-------+
| DAY        | GUID                | COUNT |
+------------+---------------------+-------+
| 2011-12-15 | 17567               | 356   |
| 2011-12-15 | 69123               | 6     |
....                                    ....
| 2011-12-16 | 69123               | 8     |
....                                    ....

It is the number of entries per guid per day.
How can I get it? Which query?

Thank you.

  • 1 1 Answer
  • 0 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-27T18:10:18+00:00Added an answer on May 27, 2026 at 6:10 pm
    select 
    date(`date`) as `day`,
    guid,
    count(*) as total
    from cheaters
    group by `day`,guid
    

    Updated answer.

    You have to add having clause at the bottom of your query.

    select 
    date(`date`) as `day`,
    guid,
    count(*) as total
    from cheaters
    group by `day`,guid
    having total > X
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have database table like this +-------+--------------+----------+ | id | ip | date |
We have multiple log files like database log, weblog, quartzlog in our application. Any
I have a 5GB database and a 20GB transaction log (SQL Server 2005). Not
I have Database with date field. I see the time like: 1900-01-01 13:38:00.000 How
I am designing a table in the database which will store log entries from
I'd like to have a peek at Derby's database log; I don't mean the
I have a database wherein per day a table is created to log process
I have a database table for log messages and at any time there can
I have a SQLite database that contains a huge set of log messages. I
I I have a linq-to-sql database in which I want to log some of

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.