Preview

Primary Key

Satisfactory Essays
Open Document
Open Document
438 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Primary Key
AutoParts Warehouse
1.

Draw an ERD for AutoParts Warehouse indicating the types of relationships between the entities.

2.
Owns
CUSTOMER

1

VEHICLE
M

M

ORDERS

N
N
PARTS

INVENTORIES

1
STORE

M

REQUEST

M
TRANSFER

2. For each of the entities identified, design tables and identify the possible candidate keys, the primary key, a probable foreign key, and potential secondary keys.
a. PARTS (PART_NUMBER, STORE_NUMBER, PART_DESCRIPTION, QTY_ON_HAND,
COST, RETAIL_PRICE)
Candidate keys: PART_NUMBER is the only candidate key. No other field will identify parts uniquely.
Primary key: PART_NUMBER is the primary key.
Foreign key: STORE_NUMBER is a foreign key from the STORE table.
Secondary keys: There are no other potential secondary keys.
b. CUSTOMER (CUSTOMER-ID, CUSTOMER_NAME, CUSTOMER_PHONE_NUMBER,
CUSTOMER_EMAIL)
Candidate keys: CUSTOMER-ID, CUSTOMER_PHONE_NUMBER, and
CUSTOMER_EMAIL are the candidate keys. The CUSTOMER_NAME field will not identify customers uniquely because two customers may have the same name.
Primary key: CUSTOMER-ID is the primary key.
Foreign key: There are no foreign keys.
Secondary keys: CUSTOMER_NAME, CUSTOMER_PHONE_NUMBER, and
CUSTOMER_EMAIL are potential secondary fields.
c. PARTS_ORDER_DETAIL (INVOICE_ID, PART_NUMBER, DATE, SUBTOTAL,
SALES_TAXES, TOTAL, PAYMENT_METHOD)
Candidate keys: The candidate keys are INVOICE_ID and PART_NUMBER.
Primary key: Combination of the INVOICE_ID and the PART_NUMBER is the primary key. Foreign key: PART_NUMBER is the primary key of the PARTS table.
Secondary keys: PART_NUMBER, and DATE could be used as a secondary key.
d. STORE (STORE_NUMBER, ADDRESS, PHONE_NUMBER)
Candidate keys: The candidate keys are STORE_NUMBER and PHONE_NUMBER.
Primary key: The STORE_NUMBER is the primary key, while it is unique, it would not be practical to use the phone number.
Foreign key: There are no foreign keys.
Secondary keys: There are no potential secondary

You May Also Find These Documents Helpful

  • Satisfactory Essays

    The Kudler Foods need to design an entity relationship diagram to illustrate what needs to be on the table. A few of the tables could be combined to make reading the tables much easier. Kudler foods could combine inventory/order relationship, for example; order/sale relationship table, inventory/sale relationship table, and sale/receive payment relationship table. By combining any one of these tables Kudler Foods could process orders faster, find information faster by having the data in order and labeled and overall making the company’s system more efficient. One table Kudler Foods does not have that the management should consider which would benefit the business is an “employee table”. This way; Kudler could have personal information, sales numbers, last date he/she was reviewed, and just able to keep up…

    • 4521 Words
    • 87 Pages
    Satisfactory Essays
  • Good Essays

    An entity relationship diagram (ERD) is a graphical documentation technique used in the designing of database within organizations to describe the entities and their direct relationships (Bagranoff, Simkin, & Strand, 2008). The ERD diagram consists of entities, attributes, and relationship. The entity represents a rectangular; the diamond is symbolized by describing the relationship of the entities, oval shape describes the attributes, and the lines connect all three to describe their relationship. Attached is an ERD of Kudler Fine Foods showing their existing data tables.…

    • 496 Words
    • 2 Pages
    Good Essays
  • Good Essays

    In Change Request 2, Huffman Trucking had Team B to create the entities and attributes for a brand new maintenance database. And also our team has been asked to create these tables for the items it asked for. Our team used Microsoft Access, which is a database tool. First through access we created the tables we needed for the entities, then we gathered the tables with the attributes . An example of a table is called “Maintenance Work Orders”, and in that table there would be attributes like “Part ID” or “Vehicle”. In this table we know exactly of what’s on there like the Work Order number, vehicle, part ID, and etc.…

    • 820 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    3. (2 pts) Draw the ERD for the following scenario. Include all the attributes. Note that one of your tables will have a composite identifier.…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 18 M1 Research Paper

    • 268 Words
    • 2 Pages

    Student Name Course Computer Science and IT Unit 18 Database Design Assignment Title Features of a relational databes and Testing Mia’s Sandwich Shop Database Assign 2/2 Complete this section before submitting your work: Student declaration: I certify this is my own work. Any sources I have used to assist me with this assignment are fully referenced. Student evaluation: Develop future SMART Targets.…

    • 268 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    It2640 Week 5 Appendix B

    • 632 Words
    • 3 Pages

    Prior to designing my database, I will have a clear understanding of the data. This will allow me to determine the purpose of the database. Once all information is gathered, I will divide this information into tables. Information will be properly placed into columns and I will set a primary key. Upon completion of table design, I will set the relationships between tables. I will refine my design and apply normalization rules to my design.…

    • 632 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    cis3730_Exam1_Studyguide

    • 512 Words
    • 2 Pages

    Be able to give examples of tables, specify their primary keys, and explain how they are related through foreign keys.…

    • 512 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Cis 515week 3

    • 1024 Words
    • 4 Pages

    In order to properly indentify the university’s requirements and create an accurate proposal, the first step should be to create and Entity Relationship Model (ERM). The ERM will provide a visual representation of the data structure of the data stores and show the relationships between the data. The following diagram displays the ERM:…

    • 1024 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    This memo is to inform you that your service request SR-ta-001 has reached my desk and currently is in the process of being completed. The purpose of this memo is to report the progress on the service requests. Currently I am in the stage of normalizing the database to the third normal form. By normalizing the database to the third level of normalization I will ensure that the data is efficiently organized within the database by removing duplicate and redundant data from the database relations. Normalizing the data to the normal third will help free up space and make it easier for the users to retrieve the data by elimination of the same data stored in more than one relation. In addition, normalizing to this level will also ensure data integrity, scalability, and storage efficiency. I have made sure that that there are no repeating columns or rows within the same tables and each column has only one value and one data type therefore the level of 1 normalization has been completed. I then continued to normalize the database to the second level of normalization by ensuring that each nonkey attribute is fully dependent on the key columns of the table. Once level one and two normal form had been completed I continued by establishing primary and foreign keys along with relationships. I will keep in contact with you as the project nears completion.…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The following diagram (1-1) is entity relationship (E-R) diagram and it illustrates the existing data tables.…

    • 851 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Chapter 4 Quiz Week 2

    • 537 Words
    • 2 Pages

    For each entity, create a list of attributes you think would be useful to describe the…

    • 537 Words
    • 2 Pages
    Better Essays
  • Satisfactory Essays

    week 4 Discussion 1

    • 447 Words
    • 2 Pages

    Optimal database design recognizes proper organization of table structures and relationships. Suggest at least two methods that can be used to improve the design of a database system.…

    • 447 Words
    • 2 Pages
    Satisfactory Essays
  • Best Essays

    Termpaper

    • 4159 Words
    • 22 Pages

    1.Identify the potential sales and department store transactions that can be stored within the database.…

    • 4159 Words
    • 22 Pages
    Best Essays
  • Powerful Essays

    Music

    • 1176 Words
    • 5 Pages

    | Primary Key – may contain alpha and numeric. You create this, do not use autonumber.…

    • 1176 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Discussion Board

    • 460 Words
    • 2 Pages

    I need to complete this assignment but I am having a hard time understanding it. Can someone give me some pointers on what to write on the DB? I just need a guide to start off with.…

    • 460 Words
    • 2 Pages
    Satisfactory Essays