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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:43:12+00:00 2026-06-01T14:43:12+00:00

Say I was building an e-commerce website, how would I go about recording the

  • 0

Say I was building an e-commerce website, how would I go about recording the number of products sold each day to show later on, I know I could save the amount of items in stock and put it into a database then see whether it has decreased the next day which I suppose is inevitably the solution, but imagine a store owner who wanted to see how much of any product he had sold in the last year, bearing in mind he has 1000 products, would this require 1000 columns with 365 rows? Am I thinking about this wrong or is this really the case? I know there are extensions you can download for things such as os-commerce and Magento among others which have this kind of functionality and I was wondering whether they shared a common approach or came up with something else?

So basically I’m looking to generate reports and statistics, how is this usually done, does it require huge tables with every daily change for every product?

  • 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-01T14:43:13+00:00Added an answer on June 1, 2026 at 2:43 pm

    My first inclination would be to treat each transaction as a row, with the name of the product sold in one of the columns. To meet your other requirements, a date column would be necessary to query if the item was sold between two dates.

    You can then do any number of manipulations to this table.

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

Sidebar

Related Questions

I'm building an e-commerce website in ASP.Net/C# and I'm having some difficulties with my
Am wondering, when a new project arrives, say building a social networking website, how
I am building an application that would record what people say, generate an audio
If you are building a simple website using just simple HTML/CSS/Javascript that has say
Say I'm building two applications: 1) A public website 2) A service The website
Suppose we are building an E-commerce site that allows consumers to search for products
Say I'm building an ASP.Net class that inherits from IHttpHandler , should I wire
Say you're building a Tetris game. As any proper programmer, you have your view
Let's say I'm building a data access layer for an application. Typically I have
Let's say we are building some public service that grabs the setup of a

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.