Preview

IST223-GHW7FS13

Powerful Essays
Open Document
Open Document
2215 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
IST223-GHW7FS13
Group Project Homework [78 pts]

Note: This assignment can become very large, due to the screen shots. Use trimming and compression to keep it at a manageable size.

Suppose that you have designed a database for Marcia's Dry Cleaning that has the following tables:
CUSTOMER (CustomerID, FirstName, LastName, Phone, Email)
ORDER (InvoiceNumber, CustomerID, DateIn, DateOut, Subtotal, Tax, TotalAmount)
ORDER_ITEM (InvoiceNumber, ItemNumber, Service, Quantity, UnitPrice, ExtendedPrice)
SERVICE (Service, Description, UnitPrice)

Add the prefix "HW7G_" to each table name.

Do parts A through M as given below. Those that involve SQL should be written in SQL*Plus and run, unless indicated otherwise.
Include screen shots of the results of your runs.
Note: This database has unnecessary duplicated data, which the owner wants to keep.

Here is a crow's foot diagram of the relationships that helps answer some parts:

A. Specify NULL/NOT NULL constraints for each table column. Also specify alternate keys, if any. Use the following table form. (Note: This is a big table, since every column of every table appears as a row.)

Table
Column
NULL/NOT NULL
Alternate Key?
Customer
CustomerID
NOT NULL
No
Customer
Phone
NOT NULL
Yes
Customer
Email
NULL
Yes
Customer
FirstName
NOT NULL
No
Customer
LastName
NOT NULL
No
Order
InvoiceNumber
NOT NULL
No
Order
Date
NOT NULL
No
Order
CustomerID
NOT NULL
No
Order
Subtotal
NULL
No
Order
Tax
NULL
No
Order
Total
NULL
No
Order_Item
InvoiceNumber
NOT NULL
No
Order_Item
ItemNumber
NOT NULL
No
Order_Item
Quantity
NOT NULL
No
Order_Item
Service
NOT NULL
No
Order_Item
UnitPrice
NULL
No
Order_Item
ExtendedPrice
NULL
No
Service
Service
NOT NULL
No
Service
Description
NOT NULL
No
Service
UnitPrice
NOT NULL
No

B. State relationships as implied by foreign keys and specify the maximum and minimum cardinality of each relationship. Justify your

You May Also Find These Documents Helpful

  • Satisfactory Essays

    16 F | You should limit repetition of attributes to the repetition of the primary key as a foreign key in a related table.…

    • 313 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    It203 Homework 5

    • 319 Words
    • 2 Pages

    In the table design view, right click the column name of the entity you want to create a relationship with and then select "Relationships" which opens the Properties window with the Relationships tab selected. Click on "New" and then verify the "Primary key table" and "Foreign key table". Select the primary key from the grid below the "Primary key table" name (left side of grid) and then select the column name you right-clicked on earlier from the grid below the " Foreign key table" name (right side of grid). Selecting each one in turn sets the two into the desired relationship.…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    GGR2522h

    • 750 Words
    • 3 Pages

    Navigate your ancillary retail system. The best time to walk the system is on a weekday, either at midday or at the close of the work day.…

    • 750 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 4

    • 1142 Words
    • 5 Pages

    4. Lynn is adding a billing table to a customer database. If she wants the database to retrieve…

    • 1142 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    IS3110 U5L1

    • 912 Words
    • 4 Pages

    One of the most important first steps to risk management and implementing a security strategy is to identify all resources and hosts within the IT infrastructure. Once you identify the workstations and servers, you now must then find the threats and vulnerabilities found on these workstations and servers. Servers that support mission critical applications require security operations and management procedures to ensure C-I-A throughout. Servers that house customer privacy data or intellectual property require additional security controls to ensure the C-I-A of that data. This lab requires the students to identify threats and vulnerabilities found within the Workstation, LAN, and Systems/Applications Domains.…

    • 912 Words
    • 4 Pages
    Powerful 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
  • Good Essays

    IS3110 U5D1

    • 712 Words
    • 3 Pages

    This is a lot like hardening the OS in respect that you are making sure that software stays up to date to ensure that known exploits are being addresses. Any unnecessary applications, services, or scripts that are installed should be removed immediately once the installation process is complete. Below are some things that you can do to harden software.…

    • 712 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    IAT210W05

    • 688 Words
    • 10 Pages

    IAT 210 – Week 5 Summer 2014 Group Work Let’s play some games Go to http://www.classicgamesarcade.com/ Pick five games and answer the following: Arcade Games  What are the game objects?…

    • 688 Words
    • 10 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

    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
  • Better Essays

    Instructions HW1

    • 1434 Words
    • 7 Pages

    Write the following queries in SQL. Each of your answers must be a single SQL query. Your SQL queries…

    • 1434 Words
    • 7 Pages
    Better Essays
  • Powerful Essays

    Music

    • 1176 Words
    • 5 Pages

    For this database project, you will use MS Access to create a database of vendors, and the related items they sell to your hardware store. For example, if you are Lowe’s® or Home Depot®, you purchase items to sell from various vendors, such as Black and Decker®. Some of those items may be power tools or hand tools. You may purchase items for sale from other vendors, such as garden tools. Your database is made up of two tables:…

    • 1176 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    JDBC using MySQL

    • 10167 Words
    • 41 Pages

    ////////////////////////////////////////////////////////////////////////////////////////////////// CREATE DATABASE Company; USE Company; CREATE TABLE Customer( id VARCHAR(6) NOT NULL, name VARCHAR(30), address VARCHAR(30), salary DECIMAL(10,2), CONSTRAINT PRIMARY KEY (id) )ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE Orders( id VARCHAR(6) NOT NULL, date DATE, customerId VARCHAR(6) NOT NULL, CONSTRAINT PRIMARY KEY (id), CONSTRAINT FOREIGN KEY(customerId) REFERENCES Customer(id) )ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE Item( code VARCHAR(6) NOT NULL, description VARCHAR(50), unitPrice DECIMAL(8,2), qtyOnHand INT(5), CONSTRAINT PRIMARY KEY (code) )ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE OrderDetail( orderId VARCHAR(6) NOT NULL, itemCode VARCHAR(6) NOT NULL, qty INT(11), unitPrice DECIMAL(8,2), CONSTRAINT PRIMARY KEY (orderId,itemCode), CONSTRAINT FOREIGN KEY (orderId) REFERENCES Orders(id), CONSTRAINT FOREIGN KEY (itemCode) REFERENCES Item(code) )ENGINE=InnoDB DEFAULT CHARSET=latin1; ///////////////////////////////////////////////////////////////////////// INSERT INTO Customer VALUES( 'C001 ', 'Danapala ', 'Panadura ',54000);…

    • 10167 Words
    • 41 Pages
    Better Essays
  • Satisfactory Essays

    * Create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key).…

    • 415 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Informatica self learning

    • 1626 Words
    • 7 Pages

    Let us say, you have 10 rows in the source and one of the columns has to be…

    • 1626 Words
    • 7 Pages
    Powerful Essays

Related Topics