Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Normalizing Data base design

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Normalizing Data base design

    Hi Everyone
    I am driving my self crazy with trying not to duplicate
    data I need to create a automotive lookup application for
    looking up parts

    Year,Make,Model Ect I don't no the write way to do this the
    only thing that changes is the year and what parts are used
    for that year mite be different then the year before or the year after

    Any Help
    Thank you
    Ray

    #2
    RE: Normalizing Data base design

    Hi Ray:

    This must be a common problem for those who deal in inventory--which I do not--so consider what I say to be only a first stab at the problem.

    You wrote, "I need to create a automotive lookup application for looking up parts" which I take to mean that you know the make, model, and year and need a filtered lookup of parts showing only the parts for that particular car.

    Suppose you had a car table and a parts table. The car table has fields for make, model and year. The parts table has part#, description, make, model, and year. If a part is good for two years, then there are two records for that part. If the part fits three models for two years then there would be 6 records.

    Set it up this way and you can filter the lookup based on the parts table using the expression (more or less) of make+model+year so you see parts records only for the car which concerns you.

    I wonder what others will say about this problem.

    Bill
    Bill Hanigsberg

    Comment


      #3
      RE: Normalizing Data base design

      Ray, What Bill has written is pretty close to giving you what you need. The pitfall is having multiple records for a part number. That is almost guaranteed to make you as old as Bill & I.

      Here is what I would do (having had some Inventory experience).

      Car_Table:
      Make, model, year, part_no (no part description etc. just the part_no)

      Part_inventory Table:
      Part_no, description, On_hand, On_order, cost, sell, UOM and other misc. field such as
      Unit of Measure, suggested Order Qty, Vendor, re-order point, date last sale, date last order, maybe 13 months of sales etc.

      Your set would have Car_table as parent & part_inventory table as a child linked one-to-one by Part_no.

      The thing to watch is how are you going to be updating your car_table? Will you receive downloads from Vendors or what. Think about updating now while you are still in the design phase rather than after you are all finished. That will make your life a lot easier.

      -Barry

      Comment


        #4
        RE: Normalizing Data base design

        Hi folks:

        I sure hope Ray doesn't get as old as us anytime soon!

        Barry, what you say is interesting. Of course the whole plan sails or sinks depending on whether the files can be kept up to date. I didn't know if there was a parts list available for each car but if there is then the link to a parts file becomes easier.

        Having things in two files makes it possible to reverse the join and answer the question, which cars does this part fit (1:N, part to cars).

        Who produces such files; must be the manufacturers but do they share them, sell them?

        You need such detailed knowledge to write for an industry.

        I wonder if so of the orther real inventory management specialists out there will contribute to this. (I have one particular gentleman in mind.)

        Bill
        Bill Hanigsberg

        Comment


          #5
          RE: Normalizing Data base design

          I believe what we are talking about here is like a simple bill of materials. If I were doing this I would have at least three tables:
          1) Car table (car code, make, model, year)
          2) Parts table (part number,description etc)
          3) car-parts table (car code, part number, quantity)
          several sets:

          1) car table (parent) one to many to car-parts table linked by car code. This will show all parts a particular car uses.

          2) parts (parent) one to many to car-parts table linked by part number. This will show all models that use a particular part ( where used inquiry )

          Comment


            #6
            RE: Normalizing Data base design

            I have a client in up-state NY who is in the repair business and he receives parts/price lists from 14 different mfgrs on diskette. Each Vendor is, of course, in a different format. That's why I look so old Bill, really I'm only 22 .

            -Barry

            Comment


              #7
              RE: Normalizing Data base design

              Barry,

              You don't look a day over 20. Now I'll tell you one big reason why I look older than my actual age of 15.

              The Government of Quebec operates in French. French machines use an extended character set which requires a special code page. But there are several possible code pages that can be used for the French. One is ISO 80.

              Now the problem. Different parts of the Ministry of Education use different code pages and we never know which was used to produce a particular file they send us. In fact, different divisions of the ministry are unable to share files with each other (I swear this is true) and use us (an *English* institution) as an intermediary because we have written a universal translator.

              I guess every business is like this if you dig deeply enough. Everyone believes in standards and nobody is willing to change.

              Bill
              Bill Hanigsberg

              Comment


                #8
                RE: Normalizing Data base design

                Hi Everyone
                Thank you all for your input what I was trying to do was not
                have redundant data for the make and model copying that
                data several times for a new year but I think this can not be
                avoided because their is only to fields for that

                Thank you
                Ray

                Comment


                  #9
                  RE: Normalizing Data base design

                  Hi Ray,

                  You should not think that duplicate data is inevitable, except for old invoices. This only means that you must re-design your tables & relationships until you have it right. For instance, ask yourself if ONE part can be used on MANY models?; can ONE part be used on ONE model, over several years?; can ONE model of car be unchanged over MANY years?; & so on.
                  You also need to think about what you mean when you say "part". For example, a Ford windscreen wiper unit is a "part", right? Yes, but, if you can also buy smaller units of the wiper unit then this "part" is itself split into further "parts". You should only ever have one instance of each of these, and if you are stuck with this "parts in parts" I will have a further think about it & see if I can suggest something.

                  Good luck.
                  Shaun.

                  Comment

                  Working...
                  X