943,891 Members | Top Members by Rank

Ad:
Apr 28th, 2008
0

Difficulty to form Relations and Normalize

Expand Post »
Hi All,

We have many test artifacts and each unit is known as Unit Under Test (UUT). Each UUT is unique entity so it can be considered as a Primary Key.

Also there are various defect categories (viz. CAT-I,CAT-II). Moreover each Category can be broken down into exact defect name. so CAT-I would have a table of its own having the IDs for each of the exact defect. Similarly for CAT-II


Now each UUT can have multiple defects associated with it. e.g. UUT1 has a defect in CAT-I and two defects from CAT-II.

Now even if I have a foreign key I am not able to associate multiple defects to one UUT in form of a table. Can anyone suggest a good schema so that I can be able to associate a UUT to multiple defects.

I want to have the facility of bi-directional search like...I should be able to search what are the defects and what category in a UUT. Conversely I should also be able to find a defect exists in which UUTs.

Kindly guide me on this aspect. I had thought of a junction table with a many-to-many relationship but still I am not able to associate a single UUT to multiple Categories and the defect names inside each category.

I hope I could explain things properly.
Last edited by shouvik.d; Apr 28th, 2008 at 10:37 am. Reason: Grammatical errors
Reputation Points: 64
Solved Threads: 7
Junior Poster
shouvik.d is offline Offline
198 posts
since Jan 2007
Apr 29th, 2008
0

Re: Difficulty to form Relations and Normalize

hi,
you may specify your tables and key firstly, so we get able to check it and hopefully spy out some mistakes.

brs,
cliff
Reputation Points: 158
Solved Threads: 98
Master Poster
tesuji is offline Offline
720 posts
since Apr 2008
Apr 30th, 2008
0

Re: Difficulty to form Relations and Normalize

The table design and relationship is not frozen as of till now. I thought it would be better to actually form a schema first and then go ahead designing the tables, keys and the respective relationships.

For this only I need some help.
Reputation Points: 64
Solved Threads: 7
Junior Poster
shouvik.d is offline Offline
198 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Database Design Forum Timeline: CAR HIRE
Next Thread in Database Design Forum Timeline: Help with simple database design!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC