Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. designing this database .... ?!

designing this database .... ?!

Scheduled Pinned Locked Moved Database
databasecomdesignhelpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrkeivan
    wrote on last edited by
    #1

    Hey guys, I've made this simple, as you can see in the picture I have some categories and subcategories, in this case Electronics > Television (check out this to understand better http://i56.tinypic.com/rmvifs.jpg) Television is a type of product which has some fields like (size, color, brand) that has to be saved in the database. there are many different types of products which have their own fields and their number is unknown therefore this cannot be done statically, it has to be done dynamically. in addition to all this, each field has values, there are three types of values true/false multiple choice single text the values for each field also needs to be stored in the database so when for instants TV is selected the fields are loaded + their values. I hope I were clear enough, would appreciate it if you could help out with the best design K1

    H 1 Reply Last reply
    0
    • M mrkeivan

      Hey guys, I've made this simple, as you can see in the picture I have some categories and subcategories, in this case Electronics > Television (check out this to understand better http://i56.tinypic.com/rmvifs.jpg) Television is a type of product which has some fields like (size, color, brand) that has to be saved in the database. there are many different types of products which have their own fields and their number is unknown therefore this cannot be done statically, it has to be done dynamically. in addition to all this, each field has values, there are three types of values true/false multiple choice single text the values for each field also needs to be stored in the database so when for instants TV is selected the fields are loaded + their values. I hope I were clear enough, would appreciate it if you could help out with the best design K1

      H Offline
      H Offline
      Hiren solanki
      wrote on last edited by
      #2

      Could you please look into link you provided ? It's not redirecting properly.

      Regards, Hiren.

      My Recent Article: - Way to know which control have raised a postback
      My Recent Tip/Trick: - The ?? Operator.

      C 1 Reply Last reply
      0
      • H Hiren solanki

        Could you please look into link you provided ? It's not redirecting properly.

        Regards, Hiren.

        My Recent Article: - Way to know which control have raised a postback
        My Recent Tip/Trick: - The ?? Operator.

        C Offline
        C Offline
        Chris C B
        wrote on last edited by
        #3

        If you cut and paste the link, it seems to work. Anyway this might help.[^] Unfortunately, it looks remarkably like a lecturer's whiteboard with a homework problem, snapped on a mobile 'phone, but I could be wrong. :suss:

        M H 2 Replies Last reply
        0
        • C Chris C B

          If you cut and paste the link, it seems to work. Anyway this might help.[^] Unfortunately, it looks remarkably like a lecturer's whiteboard with a homework problem, snapped on a mobile 'phone, but I could be wrong. :suss:

          M Offline
          M Offline
          mrkeivan
          wrote on last edited by
          #4

          it actually is my whiteboard and that's the problem I wanna find a solution for ! ;-) so have you got any idea guys ?

          C 1 Reply Last reply
          0
          • C Chris C B

            If you cut and paste the link, it seems to work. Anyway this might help.[^] Unfortunately, it looks remarkably like a lecturer's whiteboard with a homework problem, snapped on a mobile 'phone, but I could be wrong. :suss:

            H Offline
            H Offline
            Hiren solanki
            wrote on last edited by
            #5

            I am still out of luck, I am not getting to see image. Thanks for all your work.

            Regards, Hiren.

            My Recent Article: - Way to know which control have raised a postback
            My Recent Tip/Trick: - The ?? Operator.

            1 Reply Last reply
            0
            • M mrkeivan

              it actually is my whiteboard and that's the problem I wanna find a solution for ! ;-) so have you got any idea guys ?

              C Offline
              C Offline
              Chris C B
              wrote on last edited by
              #6

              Well, I wouldn't tackle the problem that way at all. Assuming you are using a 'grown up' database, and you don't have millions of records under 'Electronics', then I would just have two tables. The first would hold the records of all the 'Electronics' items, with a 'Category' column containing a unique code for TV, DVD player and so on. Other than the essential columns, like Name etc, I would have Descr1, Descr2, Value1, Value2, etcetera, enough to accommodate the most complex item. Some columns would have normal names, for instance, 'Price', or 'Cost'. The second table would reference the first through the Category Code, have the same columns and column headers as the first table, but the rows would each contain descriptive values for the equivalent column headers in the first table.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups