Preview

Entity Relationship

Good Essays
Open Document
Open Document
431 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Entity Relationship
A Computer Retail Company Inventory Database

In this project, we will discuss a computer retail company inventory database. This project focuses on the merchandise inventory, including the production, warehouse storage, store stock, and customer purchase of the merchandise. 1. ER model
Figure 1 shows the ER mode of this database project. Its entities includes the product (merchandise, includes laptop and desktop subclass), manufacturer, warehouse, store and customer. It also has the manufacturer-make, product-in-store, product-in-warehouse, and customer-order relationships. 1.1 Entities.
This project focuses on the product (or merchandise) entity. Its attributes include item number, model, type, price and quantity. The item number distinguishes every item, and we choose it as the primary key of product entity. Here quantity is a derived attribute, whose value can be calculated from the sum of item quantity at store and warehouse. Product can be divided into two disjoint subclass, laptop and desktop. We assume the computer retail company only sell computer, includes laptop and desktop.
Another entity is the manufacturer of the product (computer in this case). It has the attributes of the manufacturer name, ID, address, and telephone. Manufacturer ID is the primary key.
The company is consisted of some warehouses and stores. The store attributes include store_no, address, and telephone. The store_no is primary key. Similar to store, warehouse has the ware_no as primary key, and other attributes include address and telephone.
The last entity is customer, described by customer name, customer number, and payment. Customer number is the primary key. 1.2 Relations
Besides these entities, the model also includes 5 relations.
First, manufacturer makes product. We assume that one manufacturer can make many products for the company, and one product can only be made by one manufacturer.
Second, warehouses provide merchandise to stores. We assume

You May Also Find These Documents Helpful

  • Satisfactory Essays

    1. Entities in the conceptual model eventually are converted to tables in the database, and the attributes convert to the fields within the tables. Given this information, list the attributes (fields) found in the supplier table.…

    • 314 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    3. Consider a table of data about employees. Which of the following fields are keys? Which one would you choose as the primary key? Employee ID Why? Because it is a unique number assigned to each employee.…

    • 421 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Entity-relationship Model

    • 411 Words
    • 2 Pages

    13. Domain Entities- Domain entities are the entities that relate directly to the business of the database. In a database to track customer orders, for instance, domain entities would probably include ones like…

    • 411 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    StudyModeUpload

    • 2671 Words
    • 24 Pages

    65. Write the SQL code to create the table structures for the entities shown in Figure P7.65. The structures should contain the attributes specified in the ERD. Use data types that would be appropriate for the data that will need to be stored in each attribute. Enforce primary key and foreign key constraints as indicated by the ERD.…

    • 2671 Words
    • 24 Pages
    Powerful Essays
  • Satisfactory Essays

    Primary keys are used as foreign keys in other entities that need to refer to this entity. 6 Primary Key Properties   …

    • 600 Words
    • 9 Pages
    Satisfactory Essays
  • Good Essays

    Entities are defined as a person, place, thing, or event in which data is collected and stored. Each entity is a unique and distinct object that may be a physical or abstract object within the real world (Coronel, Morris, & Rob, pg. 34). Entities of a database for a college that needs to keep track of students and courses would be students, professors, courses, classes, room, and enrollment status. These entities will be used to format the data within the database so that each student and course is accounted for. Attributes are characteristics of an entity, such as a name, phone number, or address (Coronel, Morris, & Rob, pg. 34). Attributes for the college database would include student first and last name, student phone number, student address, student identification number, student grade point average, student course major, and student classes to describe the student entity. The professor entity would be described by professor…

    • 906 Words
    • 3 Pages
    Good Essays
  • Best Essays

    Termpaper

    • 4159 Words
    • 22 Pages

    The following Entities are derived from the above transactions which need to be stored in the databases and maintained in the department’s stores.…

    • 4159 Words
    • 22 Pages
    Best Essays
  • Good Essays

    As explained earlier in this document, the entities and attributes were already created by Smith’s Systems Consulting, but gave no details on how they would be used in the database. In order to fully explain how the entities and…

    • 728 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Entity: an object that is involved in the enterprise and that be distinguished from other objects. (not shown in the ER diagram--is an instance)…

    • 1653 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    CSC 316 Module 1 SLP

    • 444 Words
    • 2 Pages

    A database to track inventory and sales for the PC Store will be a necessary and vital improvement for the stores success. The database will need relatable data that can be stored and called upon when needed to track inventory and customers efficiently. Such a system could eventually provide personalized suggestions of items for the customers to purchase. Implementing such a system will require the PC Store to start gathering data that will benefit the database and provide tangible results.…

    • 444 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Relational Model

    • 406 Words
    • 2 Pages

    Figure 2. Relational Model provides an overview of the table content, table column/attributes and the relationships that connects them. The identified relationships are as follow: a single customer can make multiple sales (1:M), a single sale contains specific set of sales details (1:1), the same payment could be used for multiple sales (1:M). Furthermore, an order details can contain multiple books or product items (1:M), a single author can have multiple books in the store (1:M) just as a single publisher can publish many different books and authors (1:M).…

    • 406 Words
    • 2 Pages
    Good Essays
  • Good Essays

    For example, the customer table will have a primary key which is individual for each customer. This key can then be referenced by the customer order table which maintains order history for all customers. The products table can use the same process to access inventory counts and/or supplier information. All of this…

    • 666 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Advertising and Kodak

    • 269 Words
    • 2 Pages

    An entity would be a customers name, and the attributes would be their address, purchase history. An entity could also be an age group. Attributes could include specific age, where they are from, what they purchase, what they would like to purchase.…

    • 269 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 3

    • 754 Words
    • 4 Pages

    makes the physical database available for different logical views. makes the logical database available for different analytical views. makes the physical database available for different analytical views. makes the relational database available for different analytical views.…

    • 754 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Cis515

    • 3200 Words
    • 13 Pages

    These would make up the core entities of the database and each entity would have various attributes with further relevant information which can be displayed in a hierarchical nature.…

    • 3200 Words
    • 13 Pages
    Powerful Essays