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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:24:29+00:00 2026-06-01T16:24:29+00:00

I am working on a problem where I am trying to figure out the

  • 0

I am working on a problem where I am trying to figure out the best way to design the Db tables for this. Lets say I have multiple books and each book has variable number of pages in it…I need to track page views for every book

e.g. Book 1 = 10 pages , Book 2 = 20 pages, Book 3 and 100 pages and so on
As the user views each page in a book, I need to log that information.

The motive is to come up with some aggregation numbers on the %views of each book. I should be able to say e.g. “70% people read Book 1 upto Page 7 and then drop off”

I envision it as

book 1 page 1 1000 views
book 1 page 2 950 views
book 1 page 3 800 views
.....
...
book 1 page 10 50 views

and with this I can generate a drilldown report of sorts

however, with variable page numbers in each book, what is the best way to store this information?

any help would be much appreciated

  • 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-06-01T16:24:30+00:00Added an answer on June 1, 2026 at 4:24 pm

    You will need to add an extra table:

    PagesViews:

    • BookId.
    • UserId.
    • PageNumber.
    • ViewDate.
    • …

    With a composite primary key(BookId, UserId, PageNumber).

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

Sidebar

Related Questions

I always have a problem trying to figure out the best way to make
I am trying to figure out what the best way of working with a
I have been working on this problem for a while now. I am trying
I've spent half day trying to figure out this and finally I got working
I have been trying to figure out a way to convert bitmap files into
I'm trying to figure out the best way to make an AJAX call to
I'm trying to figure out the best way to load a textured 3D model
I have been working for a couple days trying to figure out how to
So, I've been trying to figure out exactly why this isn't working but I
I have been working on an application, and was trying to figure out why

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.