Home > Ask the Oracle Experts > SQL Questions & Answers > More on ISBN as a primary key
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

More on ISBN as a primary key

Rudy Limeback EXPERT RESPONSE FROM: Rudy Limeback

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 16 April 2002
I would like to follow up on the question regarding primary keys. The example of the ISBN of a book prompts me to ask about how to enable primary keys in a worldwide library environment. If ISBN were actually unique for each book, there would be no problem. But in fact, if we think of a book as its content, there will be different ISBNs for the same book: one for the hardback edition, another for the paperback, a third for the book in a set with other books, a fourth for the edition licensed for publication in the U.K. and so forth. Complicating the problem is the fact that some book ISBNs are unknown or are incorrectly transcribed by libraries. Is there some way to have a universal and persistent ID any one could use anywhere? Perhaps by sending various data elements from a book to a server that would return a valid ID? Thanks for any help with this problem.

>
EXPERT RESPONSE

(Note: see Questions about primary keys 05 April 2002)

Assuming that a "more unique" code than the ISBN is even possible, it follows that there would be a one-to-many relationship from each such code to the ISBN numbers of the "same" book. Your examples make sense, though, at least to me, but I hasten to point out that I don't know book publishing, or the conditions under which a "new" ISBN is issued to the "same" book.

worldwide code     ISBN       description
  00000101      1230001234    hardback edition 
  00000101      1230005678    paperback edition 
  00000101      1230000937    UK version

From a database design perspective, what would you use as the primary key? In my opinion, the ISBN would still be the PK. The "worldwide code" would be a foreign key, although you might not have a separate table for it. In any case, you can see that to implement this many-to-one relationship (as seen from the perspective of the ISBN) all you need to do is add the new worldwide code column to the existing table that uses ISBN as its primary key.

By the way, have a look at The Digital World and the Ongoing Development of ISBN, part of the isbn.org web site, which I discovered when researching this question. It says that the ISBN will be expanding from 10 digits to 13 in 2005. Not as monumental a change as Y2K, but you may want to start making plans...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
SQL
Finding a column value inside a user-supplied string
Update a specific column in a field or row?
Using BETWEEN with DATETIMEs in SQL
Which normal form is used most?
IN list or series of OR conditions?
Connecting tables in a database
SQL query for co-authored books
Querying complex derived tables
SQL string functions
Changing a NULL column to NOT NULL

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts