Solved

Database schema help

Posted on 2011-02-24
1
367 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
1 Comment
 
LVL 32

Accepted Solution

by:
ewangoya 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now