Question

In: Computer Science

design a relational database to cater for the needs of the new bookshop owner as described...

design a relational database to cater for the needs of the new bookshop owner as described in the first question giving examples of tables, attributes, primary and foreign keys. you may assume that suppliers' orders contain more than one line

Solutions

Expert Solution

A relational database for catering the needs of a bookshop owner contains the following tables:

1. Book (for storage of list of books)

2. Publisher (for list of publishers)

3. Book_price (to store price of books)

4. Supplier (To store supplier information)

5. Supplier_order (To store supplier's order information)

6. Supplier_order_details (To store order details. Since one supplier can have >1 orders)

Now, let us look at what all attributes are associated with each entity:

1. Book:

- Book_ID [Primary Key]

- Publisher_ID [Foreign Key]

- Code

- Name

- Author

- Year

- Stock

2. Publisher:

- Publisher_ID [Primary key]

- Name

- Date

3. Book_price:

- ID [Primary Key]

- Book_ID [Foreign Key]

- Price

- Discount

4. Supplier:

- Supplier_ID [Primary Key]

- First_Name

- Last_Name

- Email

- Address

- Phone

5. Supplier_order:

- ID [Primary Key]

- Supplier_ID [Foreign Key]

- Price

- Date

6. Supplier_order_details:

- ID [Foreign Key]

- Supplier_order_ID [Primary Key]

- Book_ID [Foreign Key]

- Quantity

This is the basic and required information. You can add more attributes if required. Please feel free to reach out in the comment box in case you have any doubts. Hope it helps. Happy learning!!


Related Solutions

Data Modeling and Database Design (Database Concepts, Eighth Edition) The relational model is the most important...
Data Modeling and Database Design (Database Concepts, Eighth Edition) The relational model is the most important standard in database processing today. Why do you feel that this model has continued to be successful in the world of IT? What would happen if large corporations decided to reject this theory, and store their data using a non-relational model? Are there any success stories where this has happened?
You are asked to design a relational database for a simple course registration software application for...
You are asked to design a relational database for a simple course registration software application for your school. The relational database must have the following information about the student, the course, and the registration, respectively StudentID, FirstName, LastName, DataOfJoining, and Major CourseNumber, CourseName,InstructorName, StartDate, EndDate, NumberOfCredits ReferenceID, StudentID,CourseID, DateOfRegistration Apply the following constrains while designing the database Each student in the database must be uniquely identifiable Each course listed in the database must be have unique CourseNumber Each course registration...
The owner of Horne Design Wallcoverings has hired you as a consultant to design a database...
The owner of Horne Design Wallcoverings has hired you as a consultant to design a database management system for his chain of three stores that sell wallpaper and accessories. He would like to track sales, customers and employees. After initial meeting with him, you have developed a list of business rules and specifications to begin the design of an E-R Model. The list of business rules are: Customers place orders through a branch A customer may place many orders A...
One of the characteristics of good relational database design is normalized tables. Discuss two ways in...
One of the characteristics of good relational database design is normalized tables. Discuss two ways in which normalization helps minimize data redundancy and anomalies such as insertion, deletion, and update anomalies. What are some other characteristics of good database design?
The database design process for noSQL databases is different from one for relational (SQL) databases. As...
The database design process for noSQL databases is different from one for relational (SQL) databases. As we learned noSQL database does not require to have a predefined structure, except of creating a list of databases and the list of collections. Some of the noSQL databases (like MongoDB) allow to define certain rules that will define what should be the structure of the acceptable documents for each collection. As you may recall, when you need to store multiple data points in...
Design and implement a relational database application of your choice using MS Workbench on MySQL a)...
Design and implement a relational database application of your choice using MS Workbench on MySQL a) Declare two relations (tables) using the SQL DDL. To each relation name, add the last 4 digits of your Student-ID. Each relation (table) should have at least 4 attributes. Insert data to both relations (tables); (15%) b) Based on your expected use of the database, choose some of the attributes of each relation as your primary keys (indexes). To each Primary Key name, add...
Subject: Database Design System and Management We have been introduced to the concept of Relational databases,...
Subject: Database Design System and Management We have been introduced to the concept of Relational databases, SQL, Business rules, Centralized and Distributed database systems. Write 2/3 paragraph and discuss: Q: How important are Relational Debase Management System in business operations and productivity? What is your level of comfort with this technology? How important are Logical database design and what was your favorite topic.?   
Describe what a database system is and how it is used. What is a relational database...
Describe what a database system is and how it is used. What is a relational database system and how used in a company to benefit an organization? What does it mean to run a query?
What are some of the advantages of a relational database system?
What are some of the advantages of a relational database system?
A database needs to be developed that supports a supermarket. (i) Design an entity-relationship diagram that...
A database needs to be developed that supports a supermarket. (i) Design an entity-relationship diagram that captures, as far as possible, the requirements stated below. (Statements in brackets are additional explanations and not part of the requirements proper.) If you make any assumptions in your design, please write them down. Assumptions, however, must not contradict the requirements. 1. The supermarket sells products. Each product is uniquely identified by its product number. Moreover, a product has price. The supermarket also records...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT