Cardinality "highly unusual"
From: Matt M <mattm_inet_at_yahoo.com>
Date: Tue, 15 Feb 2005 17:11:31 +0700
Message-ID: <37e06nF5ec534U1_at_individual.net>
Hi
Date: Tue, 15 Feb 2005 17:11:31 +0700
Message-ID: <37e06nF5ec534U1_at_individual.net>
Hi
I'm learning database design and have a slight problem with a relationship I'm trying to model.
To be specific, I'm working on the example of a bookshop that sells rare and out-of-print books. Each book is tracked as a unique object, and so can be sold only once. One or more books can sold with each order. The relationship between order and book, therefore, is 1:m (an order can contain many books, but each book can be contained in only one order).
Is this true? If so, how should I model the book/order relationship, bearing in mind that each book can be associated with at most one order?
Thanks for your help
Matt M. Received on Tue Feb 15 2005 - 11:11:31 CET