Preview

Information Systems

Satisfactory Essays
Open Document
Open Document
386 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Information Systems
Assignment # 3

1a) List the columns of the two tables.

Students (Student ID, firstName, lastName, Course ID)
Courses (Course ID, CourseName)

b) For each of the tables you created, what are the candidate keys?

There are Students Table and Courses Table.
Students Table: Candidate keys include student ID, firstName and lastName.
Courses Table: They candidate key is the Course ID and courseName.

c) For each of the tables you created, what is the primary key?

The primary key of Students Table is Student ID.
The primary key of Courses Table is Course ID.

d) Explain how the two tables are related. Which table contains the foreign key? What is the foreign key?

The students and their course names make the tables related. The student ID correlates to the students' last names and first names and the course ID. Therefore, this is the primary key. The course ID is the foreign key of the Course Table.

2) The Cape Codd Outdoor Sports database has the following tables:

RETAIL_ORDER (OrderNumber, StoreNumber, StoreZip, OrderMonth, OrderYear, OrderTotal)

ORDER_ITEM (OrderNumber, SKU, Quantity, Price, ExtendedPrice)

SKU_DATA (SKU, SKU_Description, Department, Buyer)

WAREHOUSE (WarehouseID, WarehouseCity, WarehouseState, Manager, Squarefeet)

INVENTORY (WarehouseID, SKU, SKU_Description, QuantityOnHand, QuantityOnOrder)

a) There is a flaw in the design of the INVENTORY table. Explain what this design flaw is.

There are 2 primary keys in the inventory table, which are the Warehouse ID and the SKU. They are primary key references for relationships to other tables.

b) For each of the tables above, what is the primary key?

Retail_Order: Order Number
Order_Item: Order Number
SKU_Data: SKU
Warehouse: Warehouse ID
Inventory: Warehouse ID and SKU

c) Which tables contain foreign keys? What are the foreign keys?

Order_Item table contains a foreign key and the foreign keys are the SKU attribute.

3) We know that if a table

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT2520 Unit7Labs Tramil

    • 330 Words
    • 1 Page

    3. What is a foreign key? This primary key becomes a foreign key when it is repeated in another table to create a link between the tables.…

    • 330 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    7) In a one-to-many relationship, each row on in the primary key table can be related to any number of rows in the foreign key or child table.…

    • 613 Words
    • 3 Pages
    Good 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

    Extract the First and Last Name, Address, City, State, Zip Code and Phone Number of each senior on the database. Sort by Last Name, then First Name (1 sort).…

    • 325 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    List the relational operators and logical operators that can be used to form a validation rule.…

    • 636 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    2. Look at your latest grade report. Identify the fields and entities represented in the report.…

    • 421 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    07

    • 4772 Words
    • 25 Pages

    5) The SQL keyword CONSTRAINT is used in conjunction with the SQL keywords PRIMARY KEY and FOREIGN KEY.…

    • 4772 Words
    • 25 Pages
    Good Essays
  • Powerful Essays

    Info Systems

    • 1106 Words
    • 5 Pages

    8) When a business process is determined to have poor performance, the firm should always…

    • 1106 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    • Develop at least two tables, using the same step of the accounting cycle selected for your previous Learning Team assignments, that could be used in a database for your selected accounting cycle.…

    • 103 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    04

    • 4586 Words
    • 34 Pages

    A FOREIGN KEY constraint can be added to the column of a table to ensure that the referenced data value actually exists in the other table.…

    • 4586 Words
    • 34 Pages
    Satisfactory Essays
  • Good Essays

    Information system

    • 3772 Words
    • 32 Pages

    According to the graph below, if a country is currently producing at point X, the opportunity cost of producing another consumer good is…

    • 3772 Words
    • 32 Pages
    Good Essays
  • Good Essays

    Anime LIst

    • 11441 Words
    • 52 Pages

    Which of the following fields also serves as a primary key in another table when two tables…

    • 11441 Words
    • 52 Pages
    Good Essays
  • Satisfactory Essays

    Name and Example Output

    • 492 Words
    • 2 Pages

    1) Display the the name of each student and what zipcode they live in. sort them by last and then first name in ascending order…

    • 492 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Information Systems

    • 1117 Words
    • 5 Pages

    Ultimately, our success is determined not by the buildings we construct, but by the investment we make in the people and programs that bring each new facility to life. We are providing a broad framework of support that enables…

    • 1117 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Databases are used for record keeping and tracking of information institutions like colleges or organizations (Coronel & Morris, 2015). In this case, the database will be used to keep track of the students・attendance, performance and the courses they are supposed to be taking. This will help the college analyze how the students perform and which classes they least or most attend. The database will also help the college keep track of all the subjects which the student is taking or is expected to take in during the course. Instructors will also be part of the database. The database will track their performance in various subjects and their attendance in each class. The database will be upgraded at the beginning of every subject where each student will confirm their attendance for the particular subject and whether the instructor is in class as well. After an examination, all the students・performance will be…

    • 590 Words
    • 3 Pages
    Satisfactory Essays