Preview

Database Principles Assignment

Good Essays
Open Document
Open Document
1441 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Database Principles Assignment
1. Let us design a database for an bank, including information about customers and their accounts. Information about a customer includes their name, address, phone, and Social Security number. Accounts have numbers, types(e.g., savings, checking) and balances. We also need to record the customer(s) who own an account. Draw the E/R diagram for this database. Be sure to include arrows where appropriate, to indicate the multiplicity of a relationship.
Solution:
[pic]

2. For your E/R diagram of exercise 1, (i) Select and specify keys, and (ii) Indicate appropriate referential integrity constraints.
Solution:
Keys ssNo and number are appropriate for Customers and Accounts, respectively. Also, we think it does not make sense for an account to be related to zero customers, so we should round the edge connecting Owns to Customers. It does not seem inappropriate to have a customer with 0 accounts; they might be a borrower, for example, so we put no constraint on the connection from Owns to Accounts. The E/R diagram below showes underlined keys and the numerocity constraint.
[pic]

3. The E/R diagram below represents ships. Ships are said to be sisters if they were designed from the same plans. Convert this diagram to a relational database schema.
Solution:
Ships(name, yearLaunched) SisterOf(name, sisterName)

[pic]

4. Consider a relation representing the present position of molecules in a closed container. The attributes are an ID for the molecule, the x, y, and z coordinates of the molecule, and its velocity in the x, y, and z dimensions. What FD’s would you expect to hold? What are the keys?
Solution:
Surely ID is a key by itself. However, we think that the attributes x, y, and z together form another key. The reason is that at no time can two molecules occupy the same point.

Consider a relation with schema R(A,B,C,D) and FD’s AB->C, C->D, and D->A.
What are all the nontrivial FD’s that follow from the given FD’s? You should restrict

You May Also Find These Documents Helpful

  • Good Essays

    | 5. Batches checks 6. Sends checks to cashier 7. Uses payments stub to enter payments into computer…

    • 787 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    CTS 2437 Final Exam

    • 630 Words
    • 4 Pages

    4. Create a table called Customers that contains a person’s first name, last name, and social security number. Your table definition should…

    • 630 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    (This source helped me a lot to answer most of Part A, as it had all the information required).…

    • 772 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Questions Unit 2 Pt2520

    • 389 Words
    • 2 Pages

    * A Candidate Key can be any column or a combination of columns that can qualify as unique key in database. There can be multiple Candidate Keys in one table. Each Candidate Key can qualify as Primary Key.…

    • 389 Words
    • 2 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
  • 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
  • Powerful Essays

    a) You are to show each step in your solution: UNF, 1NF, 2NF, 3NF .…

    • 1494 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Boston Bottles

    • 614 Words
    • 3 Pages

    Draw an REA diagram with cardinalities and tables with primary keys, foreign keys, and non-key attributes for the following business:…

    • 614 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Entity-relationship Model

    • 411 Words
    • 2 Pages

    9. Cardinality- Cardinality refers to the number of allowed related rows between entities. The usual one-to-many relationship assumes that for each one record in the primary key entity, there can be any number of related rows in the foreign key entity.…

    • 411 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The Entity Relationship Diagram, also known as (ERD) demonstrates the relationship between data in the new database. ERD shows the logical path that the data follows. The data model gives one understanding and the visual representation to observe the different phases of the database and determine the path the information is pulled or stored from. Learning Team D demonstrate linking the different tables in the Fleet Truck Maintenance database. The creation of the logical path predicts the flow of the data entered and the tables relationship to other tables in the database.…

    • 553 Words
    • 3 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
  • Satisfactory Essays

    Bis245 Ilab

    • 2683 Words
    • 11 Pages

    A. Lab # : BSBA BIS245A-1 B. Lab 1 of 7 : Introduction to MS Visio and MS Access C. Lab Overview--Scenario/Summary TCOs: 1. Given a business situation in which managers require information from a database, determine, analyze and classify that information so that reports can be designed to meet the requirements. 2. Given a situation containing entities, business rules, and data requirements, create the conceptual model of the database using a database modeling tool. Scenario: You have been asked to create two conceptual database models using MS Visio Database Model Diagram Template. The purpose of this lab is to have you gain familiarity with the various modeling tools needed to create a conceptual model (entity relationship diagram) of a database. You will create two conceptual models. You will then open an existing Access database to explore database objects and to experiment with simple data manipulation using filters and sorts and to begin elementary work with relationships. Upon completing this lab, you will be able to 1. relying on detailed instructions, create a simple conceptual model for a two-table database using MS Visio; 2. use experience gained in creating the first model to construct a similar conceptual model without the instructions; and 3. download an existing Microsoft Access database file. Open the database; find and identify different database objects in this database.…

    • 2683 Words
    • 11 Pages
    Satisfactory Essays
  • Powerful Essays

    Cis515

    • 3200 Words
    • 13 Pages

    There are several important steps to consider when designing a database, as a well-designed database should be deployed and not only support the accuracy and integrity of business information but also avoid redundant data and assist with has enterprise level reporting tasked. If we analyze the transactions carried out in each store we can produce a list of the principal entities which are involved with a store based transaction:…

    • 3200 Words
    • 13 Pages
    Powerful Essays
  • Powerful Essays

    2. Then convert E-R diagram to SQL DDL, or whatever database model you are using…

    • 1653 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Describe the user needs of the database and identify the functionality that they are expecting from a Relational Database Management System (RDMS).…

    • 527 Words
    • 3 Pages
    Good Essays