Solved

Database schema help

Posted on 2011-02-24
1
399 Views
Last Modified: 2012-05-11
How do you design the database schema for Books and Region using the following scenario?

I am confused because 1 book can belong to many regions.
Certain books wont be available in some regions. I want each record in the book table to be unique.


SCENARIO
We are currently building  an ebook store with 1.2 million titles, each of which is identified by ISBN.  We store a plethora of information we’d like to collect, including author, title, copyright year, publisher, language, price, and geographic region(s) to which the books are allowed be distributed (for instance: China has strict censorship laws).
0
Comment
Question by:wademi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 500 total points
ID: 34975856

Normalization
You need three tables

Table1 : Books
BookID  PK
BookTitle
ISBN
.....

Table2: Region
RegionID   PK
RegionTitle
.....

Table3: BookRegion
ID  PK
BookID
RegionID
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server 2012 r2 and SQL 2014 6 33
VM SQL server license. 1 60
How do i delete the last node in an xml in T-SQL 7 25
t-sql left join 2 30
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question