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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:10:35+00:00 2026-05-25T23:10:35+00:00

assuming we have a table like below name | userid | score | datestamp

  • 0

assuming we have a table like below

  name   |  userid  |  score  |      datestamp      |
-----------------------------------------------------
  john   |    1     |   44    |  2011-06-10 14:25:55 
  mary   |    2     |   59    |  2011-06-10 09:25:51 
  john   |    1     |   38    |  2011-06-10 21:25:15 
  elvis  |    3     |   19    |  2011-06-10 07:25:18
  ...
  marco  |    4     |   100   |  2011-03-10 07:25:18  

i want to display the high-score of each user in each single day.

so for eaxmple if the player john have played ten rounds in the 2001-06-10 i want to display the the best score of that day, and so on for the others players.

thank you very much for the time.

  • 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-25T23:10:36+00:00Added an answer on May 25, 2026 at 11:10 pm
    SELECT name, MAX(score) AS hiscore, DATE(datestamp) AS sdate
    FROM scores
    GROUP BY userid, sdate
    ORDER BY sdate DESC
    

    But also notice that your table is not even in the first normal form because it lacks an unique key. Also after fixing that, name of players will be repeated, and it will have to be extracted in a separate table for the second normal form.

    A normalised design will have two tables:

    player(userid, name)
    scores(scoreid, userid, score, datestamp)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider I have a table, like below, that I am trying to populate with
Assuming I have a table like this one: CREATE TABLE user_delegates ( [id] INT
I have a table like : trans is the name of the table for
Assuming you have a simple table like the following: +---------+---------------------+ | user_id | activity_date
Assuming I have a table foo where I have something like this: id ,
my question is: assuming we have a calendar_table with UNIX datestamp date_column, i want
Assuming I have only the class name of a generic as a string in
Assuming I have table called events with the columns INT id DATETIME start_time DATETIME
I have a SQL database with two tables like this: Users Id (PK) Name
If i have a parameterized SQL statement like this: SELECT * FROM table WHERE

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.