home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!waikato.ac.nz!comp.vuw.ac.nz!ferrari.datamark.co.nz!david
- Newsgroups: comp.databases
- Subject: Re: MANY-TO-MANY mess in Paradox!!!
- Message-ID: <1992Nov23.003205.37473@datamark.co.nz>
- From: david@datamark.co.nz (David Rowland)
- Date: Mon, 23 Nov 1992 00:32:05 GMT
- References: <Bxzoqw.6xo@ccu.umanitoba.ca>
- Organization: Datamark International Ltd.
- Lines: 43
-
- In article <Bxzoqw.6xo@ccu.umanitoba.ca> ummalik@ccu.umanitoba.ca (Ijaz Rashid Malik) writes:
- >
- >Is it just me or does every one is unhappy withg Paradox's way of handling
- >many-to-many links. I always end up with extra tables and lots of redundant
- >information. In a typical scenerio (sp?), a product can be supllied by
- >many vendors and a vendor can suplly many products. When it comes to
- >displaying either side of this info, paradox suggests extra tables and their
- >use in the "form" display/generation. It, however, doesnot suggest an
- >answer to following problem....
- >
- >say, from an input screen I am entering info about new products or new
- >suppliers. If its products, it can have a variable number of vendors and
- >if it is a vendor, there could be a variable # of products for it. How can
- >I design an input screen/form that has linked tables on it and handeles
- >multiple entries for a given field. I mean I can use Products as master
- >form and use vendors as linked embeded form. Now when ever I enter a new
- >product, I am not sure how many vendors for this product there will be.
- >Could be 0,1, or 10000!!! How can I design an input screen and then table
- >which would handle this situation????
- >
- >Thanks very much for help.
- >
-
- This seems to be a problem with your database design. Try to create a
- link database between these two files.
-
- e.g.
-
- Parts PartSupp Suppiers
- Part Number -> Part Number
- Supplier Code -> Supplier Code
-
- If each supplier has their own number, you can add a third field to
- PartSupp which contains this number and have an inhouse part number
- which is used by the company.
-
- The idea of many to many relationships should be avoided when ever
- possible in order to maintain good database integrity for the future.
- --
- | David Rowland | The British are using New Zealanders. They must |
- | Datamark Intl Ltd | really mean business ! |
- | Wellington | - General Rommel During Northern African |
- | NEW ZEALAND | Campaign WWII. |
-