Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Multi part attr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 3150 of 3210
Post > Topic >>

Multi part attributes design question

by Rik Hemsley <rikkus@[EMAIL PROTECTED] > Apr 29, 2008 at 05:11 AM

I am trying to improve the design of a table and was hoping this might
be the correct group in which to ask for help.

The table is called PartCodes and has three columns:

ProductID, PartCode, SequenceNumber

Each product may have multiple codes. Each code has a sequence number.

So, for example, the data contained might look like:

1, 'x', 1
1, 'y', 2
1, 'z', 3
2, 'a', 1
2, 'b', 2
3, 'c', 1

The problems with this table design:

* It's difficult to write the check constraint for SequenceNumber.
* It's difficult to update while the check constraint is active.

Is it possible to improve this design?

I would guess that this is a fairly common problem, but I'm having
trouble finding the words which will find me an answer through
searching the web and usenet.

Any help much appreciated!

Cheers,
Rik




 6 Posts in Topic:
Multi part attributes design question
Rik Hemsley <rikkus@[E  2008-04-29 05:11:38 
Re: Multi part attributes design question
Rik Hemsley <rikkus@[E  2008-04-29 07:21:40 
Re: Multi part attributes design question
Lennart <Erik.Lennart.  2008-04-29 09:29:41 
Re: Multi part attributes design question
Robert Klemme <shortcu  2008-04-30 23:36:56 
Re: Multi part attributes design question
Philipp Post <Post.Phi  2008-05-01 02:14:49 
Re: Multi part attributes design question
--CELKO-- <jcelko212@[  2008-05-05 11:36:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 14:25:15 CDT 2008.