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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:10:26+00:00 2026-06-12T09:10:26+00:00

I am trying to come up the tables design that each category have different

  • 0

I am trying to come up the tables design that each category have different type of point calculation.

First Example: customer order a ‘Intel CPU Core i7 3770K’ item from CPU category – point will be calculated via (category_point / item_cost)

Second Example: customer order a ‘OCZ SSD’ item from a SSD category – point will be calculated via (category_point / item_cost + bonus_point + other_name_point + other_name_point)

I need to specify the fixed value for bonus_point, other_name_point, category_point in the table, etc It can be changed every month or so.

Price Range Example (Different from above) – if customer order any item from Motherboard category – point will be calculated base on item cost range like:

0.00 to £40 = 10 points

40.00 to £40 = 52 points

more than £40 = 64 points

I need to specify the point manually of the price range. This is not part of category_point / item_cost + bonus_point + other_name_point + other_name_point

How to design the tables for the points setting?

  • 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-12T09:10:27+00:00Added an answer on June 12, 2026 at 9:10 am

    May be something like:

    Customers:

    • Id,
    • Name,
    • other details
    • …

    Orders:

    • Id,
    • OrderDate,
    • CustomerId,
    • …

    *ItemsOrders:*

    • ItemId,
    • OrderId,
    • …

    Items:

    • ItemId,
    • ItemName,
    • CategoryId,
    • ITemCost,
    • …

    Categories:

    • CategoryId,
    • Name,
    • …

    CategoryPoints:

    • CategoryId,
    • PointId,
    • …

    Points::

    • PointId,
    • PointNam,
    • PointCostType bit (‘fixed’ or ‘changing’),
    • …

    PointsCostsRanges: for not fixed pints only

    • Id (Surrorgate key).
    • PointId,
    • FromRange.
    • ToRange.

    Note that:

    • You didn’t say how many pints’ types are there for each category? Is there only three: bonus_point, other_name_point and other_name_point? If so you can get rid of the table Points and add three columns to the CategoryPoints table.
    • In your example what 10 points actually mean? Does it mean the count of the points types that item have? for example if an itemm has three types like in your example bonus_point, other_name_point and other_name_point then it has 3 points or what?
    • If these ranges can change every month may be you need to add date ranges.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to come up with a way combine two arrays that have different
I have a database with 500+ tables, each with identical structure, that contain historical
I am trying to follow the Aggregate design principle and have come up with
I am trying to come up with a database design that would work with
im trying to come up with a design for a wrapper for use when
I'm trying to come up with an algorithm that will do the following: If
I'm trying to come up with a good naming convention for boolean variables that
I am trying to come up with a Reg Ex that finds the numbers
I'm trying to come up with an answer to two questions that didn't seem
I'm trying to come up with the largest possible group of friends that would

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.