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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:42:46+00:00 2026-05-27T07:42:46+00:00

Preface: I’m developing an application that quizzes users on multiple topics. I wish to

  • 0

Preface: I’m developing an application that quizzes users on multiple topics. I wish to keep a history of their progress and be able to easily present the user with a daily,weekly and monthly view of their progress on a per topic basis.

The initial design for my table is as follows:

CREATE TABLE IF NOT EXISTS `user_topics` (
  `ProgressID` int(11) NOT NULL,
  `UserID` int(11) NOT NULL,
  `TopicID` int(11) NOT NULL,
  `Level` decimal(3,1) NOT NULL,
  `TotalCorrect` int(11) NOT NULL,
  `QuestionsAsked` int(11) NOT NULL,
  `DateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
   PRIMARY KEY (`ProgressID`)
 ) 

Am I going along the right lines/ how can I retrieve the data I need to provide a presentable history?

Edit:

I’d want to display a graph with time as a scale and % correct, this would be done when a user clicks to view their monthly/weekly progress for their topics. I would like the load time between viewing weekly/ monthly data per topic pretty transparent.

Should the data be retrieved in a single call(just select the rows with from date x until now) then then leave it up to the individual client to organise the data into days/months etc then present the data?

  • 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-27T07:42:47+00:00Added an answer on May 27, 2026 at 7:42 am

    you can use date_between to query for all progress records betweentwo dates with something like this:

    SELECT * FROM 'user_topics' WHERE 'DateTime' between '2008-12-23' AND '2008-12-25';
    

    here is the mysql documentation for ‘between … and …’

    So now, using some graphing tools, you could get all the progress for the last day/week/month/year and present their progress.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Preface . I wrote a small application in C that plays a video file
Preface Let me start off by saying that I'm a relatively new programmer and
Preface: I know that there are high quality graph APIs available. I'm interested in
Preface : In my application, I store raw WAV data in the database as
I'll preface this by saying that I usually work in C#/.Net. Normally, I use
I have to preface this with the fact that I love jQuery as a
First let me preface this question by saying that I'm fairly new to Javascript.
Preface: I've got a System.Web.UI.WebControls.Table on my ASPx page that I define within the
Preface I have a need to create multiple copies of a search form (in
To preface we have a strange requirement that all dialogs must be modeless for

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.