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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:54:45+00:00 2026-06-16T21:54:45+00:00

Can anyone suggest a database design for the following: A user can make a

  • 0

Can anyone suggest a database design for the following:

A user can make a catalogue
Within a catalogue a user can make a range – i.e. a range of products
Within a range a user can add multiple products
Within a range a user can add multiple ranges -> range->range->range all with products in them.

I currently have in my database –

catalogue_range with – id, name, description
and
catalogue_product with – id, range_id, name, description

can anyone see what I’m trying to produce?

My aim is to be able to make multiple catalogue ranges within a catalogue range and add multiple products to each of these catalogue ranges.

Here is my current SQL:

`catalogue_range` (
      `id` char(40) NOT NULL,
      `profile_id` char(40) NOT NULL,
      `type` enum('pdf','db') DEFAULT NULL,
      `status` enum('new','draft','live') NOT NULL,
      `name` varchar(64) NOT NULL,
      `description` varchar(1000) NOT NULL,
      `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
      PRIMARY KEY (`id`),
      KEY `profile_id` (`profile_id`)
    )

`catalogue_product` (
  `id` char(40) NOT NULL,
  `catalogue_id` char(40) NOT NULL,
  `order` smallint(5) unsigned NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` varchar(250) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `catalogue_id` (`catalogue_id`)
) 

Thanks in advance.

  • 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-16T21:54:46+00:00Added an answer on June 16, 2026 at 9:54 pm
    1. catalogue(catalogue id, your private attributes)
    2. product(product id, #catalogue id, your private attributes)
    3. range(range id, #range id parent, your private attributes)
    4. product range(#product id, #range id)

    You will need stored procedures/applicative algorithms to compile:

    • the list of product of a range (to calculate recursive sqls mysql doesn’t offer analytic functions as oracle does)
    • the list of ranges of a catalogue/range

    Hope it helps.
    S.

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

Sidebar

Related Questions

Can anyone suggest me the format of how to make and analyse database documentation.
Can anyone suggest a CMS able to offer the following features: Free/open source Support
Can anyone suggest tips or alterations to make this code cleaner and faster? This
can anyone suggest me some jar file for generate annotation based entity from database
Can anyone suggest me how to compare two database tables in sql server and
Can anyone suggest the best way to populate a list from an sqlite database.
Can anyone suggest a good way to manage multiple web.config files? For example, I
Can anyone suggest a way to shave any time off this script? var countObject
Can anyone suggest me good plugin for memory leakage which can be integrated in
Can anyone suggest a good javascript library for displaying and navigating huge images in

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.