Preview

Database Design and SQL Assignment

Powerful Essays
Open Document
Open Document
1494 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Database Design and SQL Assignment
DBS201 Assignment 2
Due Friday, April 04th by midnight
10% of final mark

Your group must consist of 2 or 3 people You will develop a logical database design for the following description shown later (Page 3 etc). Submissions done by a single person will receive a 20% penalty.

Required for submission:

One: (60 marks) Printed 3NF solution for each user view in this assignment

a) You are to show each step in your solution: UNF, 1NF, 2NF, 3NF .
b) You are to clearly mark Primary and Foreign Keys as shown in the sample below:

Entity1[ column1 (PK), column2, column3, column4 (FK), column5 ]
Entity2[ column4 (PK) , column 6, …….. ]

Two: (10 marks)
Merged Logical design in 3NF format for the solution One. The merged logical design is also referred to as the Final Logical 3NF Design.

1. Merging is accomplished by grouping all attributes of 3NF entities that have the identical Primary Key into a single consolidated entity.

2. After merging, make the attribute names consistent.

3. You may also need to eliminate some new transitive entities as some entities may have gone back to 2NF.

4. At this stage you should closely inspect any resulting entiites that have a concatenated Primary Key to ensure that they truly represent a “Many-to-Many relation. When the relation is actually a “One-to-Many” relation, you must correct the Primary Key by removing one or more columns from the PK and including them as non-key attribute(s).

5. Check that all necessary Bridge Entities exist and create them if needed.

Three: (10 marks) An ERD that corresponds to your Final 3NF Design (solution Two).
The ERD may be printed or drawn by hand. Show only the name of the Entity, the PK, all Foreign Keys and lines joining the Entities. You should use the Crow’s Foot method.

Four:

You May Also Find These Documents Helpful

  • Satisfactory Essays

    It203 Homework 5

    • 319 Words
    • 2 Pages

    A primary key is specified by the selecting the column, right-clicking, then selecting Set Primary Key.…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    # Select a primary key for each table as indicated in the provided ERD diagram.…

    • 694 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    C_Name, C_Phone  CUSTOMER 9. RENTAL (Confirm_No, Vehicle_ID, Pickupmile, Returnmile, Ren_Pickupdate, Ren_Returndate) FK Confirm_No  RESERVATION FK Vehicle_ID  CAR 10. INVOICE (Inv_No, Confirm_No, Vehicle_ID, Inv_Date, Inv_Amount) FK Confirm_No, Vehicle_ID …

    • 182 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt2520 Final Answers 1/3

    • 329 Words
    • 2 Pages

    when u get a many to many: make a linking table that resolves the many to many into 2 1-1 relationships.…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    IST223 Crib sheet

    • 3425 Words
    • 7 Pages

    rectangles, and relationships are shown by lines between the rectangles. Attributes are generally listed within the rectangle. The many side of many relationships is represented by a crows footentity-relationship (E-R) modelA set of constructs and conventions used to create data models. The things in the users world are represented by entities, and the associations among those things are represented by relationships. The results are usually documented in an entity-relationship (E-R) diagramID-dependent entityan entity whose identifier includes the identifier of another entityidentifierwhich are attributes that name, or identify, entity instancesidentifying relationshipIn such relationships, the parent is always required, but the child (the ID-dependent entity) may or may not be required, depending on application requirements. Identifying relationships are shown with solid lines in E-R diagrams.is-aRelationships among supertype/subtype entitiesmandatoryat least one entity instance must participate in the relationshipmaximum cardinalityThe maximum cardinality is the maximum number of entity instances that can participate in a relationship instance.minimum cardinalityThe minimum cardinality is the minimum number of entity instances that must participate in a relationship instance.nonidentifying relationshiprelationship drawn with a dashed line (refer to Figure 5-7) is used between strong entities and is called a nonidentifying relationship because there are no ID-dependent entities in the relationship.null valueare a problem because they are ambiguous. They can mean that a value is inappropriate, unknown, or known, but not yet been entered into the databaseparentAn entity or row on the one side of a one-to-many relationshiprecursive relationshipoccurs when an entity type has a relationship to itself.relationship classAssociations among entity classesrelationship instanceassociations among entity instances.strong entityan entity that represents something that can exist…

    • 3425 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    cis3730_Exam1_Studyguide

    • 512 Words
    • 2 Pages

    Given a table or a set of tables, be able to specify their primary keys and foreign keys.…

    • 512 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Defining a(n) primary key in a second table creates a relationship between that table and the table where the primary key was first defined. _________________________…

    • 585 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    week 4 Discussion 1

    • 447 Words
    • 2 Pages

    When adding specific entities to a database, it's important to understand the overall concept of how these entities are affecting the rest of the database. You will need focus down on specific entities, usually the…

    • 447 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    further discussion in the simulation. Except for the table's primary key, which should be the first attribute in each…

    • 1302 Words
    • 11 Pages
    Good Essays
  • Good Essays

    The Normal Forms 3NF and BCNF Yunliang Jiang Housekeeping • HW2 due tonight – Upload a single PDF/DOC file to Compass • Stage 3 due tonight • Midterm tomorrow – During class time. Preview • • • • • • Normalization Solution: Normal Forms Introducing 3NF and BCNF 3NF Examples BCNF Normalization • Normalization is the process of efficiently organizing data in a database with two goals in mind • First goal: eliminate redundant data – for example, storing the same data in more than one table • Second Goal: ensure data dependencies make sense – for example, only storing related data in a table Benefits of Normalization • • • • • • Less storage space Quicker updates Less data inconsistency Clearer data relationships Easier to add data Flexible Structure…

    • 1137 Words
    • 16 Pages
    Good Essays
  • Good Essays

    Question 1. After completing a course in database management, you have been asked to develop a preliminary ERD for a symphony orchestra. You discover the following entity types that should be included.…

    • 1541 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    Assumption ........................................................................................ 3 1. 2. 3. 4. 5. 6. Conceptual Data Model ...................................................................... 4 Relational Schema .............................................................................. 5 Normalization ..................................................................................... 6 SQL Code and Testing........................................................................ 12 Screen Design and Testing .................................................................. 18 Report Design and Testing .................................................................. 27…

    • 1809 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Each strong entity in the ER / EER diagram will be a relation on translation. The attributes of the entities will be automatically the attributes of the relation. One of the attributes which has unique and single value will be the primary key of the relation.…

    • 1797 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Qual_ID (PK,FK) MemberOrganization Member_ID (PK,FK) Org_ID (PK,FK) Qualification Qual_ID (PK) Qual_name Qual_type Organization Org_ID (PK) Org_name Start_date End_date Topic Topic_ID (PK) Topic_name…

    • 2564 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    Point of Sale

    • 4749 Words
    • 19 Pages

    TABLE OF CONTENTS Pages Approval Sheet i Recommendation Sheet ii Acknowledgement iii Thesis Abstract iv Chapter 1 INTRODUCTION a. Introduction ………………… ……………………………….. 1 b. Statement of the problem ……….…

    • 4749 Words
    • 19 Pages
    Powerful Essays