DATABASE SYSTEMS
DATABASE SYSTEMS
13th Edition
ISBN: 9780357095607
Author: Coronel
Publisher: CENGAGE L
bartleby

Concept explainers

Question
Book Icon
Chapter 6, Problem 4P

a.

Program Plan Intro

Normalization:

The process used to minimize data redundancy and dependency in a relational database is known as normalization. The database table is divided into two or more tables and defines the relationship between those tables.

Second normal form (2NF):

  • The value of all non-primary key attributes should be dependent on the primary key attribute.
    • If any attribute is depending on the partial primary key then it should determine the other attributes for an instance of the entity.
  • The partial dependencies should be removed from the data model.

Third normal form (3NF):

  • The value of any non-primary key attributes will not depend on any other non-primary key attributes.
    • If any non-primary key attributes depend on any other non-primary key attribute then it should be moved or deleted.
    • It is termed as transitive dependency.

Partial dependency:

A partial dependency exists at that time of an attributes depends only a part of primary key. This dependency is related with 1st normal form.

Transitive dependency:

A transitive dependency exists at that time of an attributes depends on another attribute which is not part of primary key.

Functional dependency:

An association between two attributes or two set of attributes in a same relational database table, which is having some constraints is known as functional dependency.

  • In a table one attribute is functionally dependent on another attribute to take one value.

a.

Expert Solution
Check Mark

Explanation of Solution

Construct the dependency diagram with all partial and transitive dependencies:

The relational schema for given STUDENT table is given below:

STUDENT(STU_NUM, STU_LNAME, STU_MAJOR, DEPT_CODE, DEPT_NAME,

DEPT_PHONE, ADVISOR_LNAME, ADVISOR_OFFICE, ADVISOR_BLDG, ADVISOR_PHONE, STU_GPA, STU_HOURS, STU_CLASS)

  • Here, “STU_NUM” indicates the primary key.

The representation of dependency diagram with all transitive dependencies is shown below:

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  1

Explanation:

In the above dependency diagram,

  • The transitive dependency is,

    DEPT_CODE -> (DEPT_NAME, DEPT_PHONE, COLLEGE_NAME)

    ADV_OFFICE -> (ADV_BUILDINGS)

    STU_HOURS -> (STU_CLASS)

b.

Program Plan Intro

Normalization:

The process used to minimize data redundancy and dependency in a relational database is known as normalization. The database table is divided into two or more tables and defines the relationship between those tables.

Second normal form (2NF):

  • The value of all non-primary key attributes should be dependent on the primary key attribute.
    • If any attribute is depending on the partial primary key then it should determine the other attributes for an instance of the entity.
  • The partial dependencies should be removed from the data model.

Third normal form (3NF):

  • The value of any non-primary key attributes will not depend on any other non-primary key attributes.
    • If any non-primary key attributes depend on any other non-primary key attribute then it should be moved or deleted.
    • It is termed as transitive dependency.

Partial dependency:

A partial dependency exists at that time of an attributes depends only a part of primary key. This dependency is related with 1st normal form.

Transitive dependency:

A transitive dependency exists at that time of an attributes depends on another attribute which is not part of primary key.

Functional dependency:

An association between two attributes or two set of attributes in a same relational database table, which is having some constraints is known as functional dependency.

  • In a table one attribute is functionally dependent on another attribute to take one value.

b.

Expert Solution
Check Mark

Explanation of Solution

Construct the dependency diagram:

The new dependency diagram is represented by removing all transitive dependencies in STUDENT table.

First table:

The relational schema for first table is given below:

STUDENT(STU_NUM, STU_LNAME, STU_MAJOR, DEPT_CODE, ADVISOR_NUM STU_GPA, STU_HOURS, STU_CLASS)

  • Here, “STU_NUM” indicates the primary keys and “ADVISOR_NUM” indicates the foreign key.
  • The relation is in third normal form (2NF), since there is transitive dependency in this table.

The representation of dependency diagram in first table is shown below:

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  2

Second table:

The relational schema for second table is given below:

MAJOR(MAJOR_CODE, DEPT_CODE, MAJOR_DESCRIPTION)

  • Here, “MAJOR_CODE” indicates the primary key.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram in second table is shown below:

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  3

Third table:

The relational schema for third table is given below:

BUILDING(BLDG_CODE, BLDG_NAME, BLDG_MANAGER)

  • Here, “BLDG_CODE” indicates the primary key.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram in third table is shown below:

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  4

Fourth table:

The relational schema for fourth table is given below:

DEPARTMENT(DEPT_NAME, DEPT_PHONE, COLL_CODE)

  • Here, “DEPT_NAME” indicates the primary key.
  • The relation is in third normal form (3NF) but it does not meet the BCNF, since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram in fourth table is shown below:

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  5

Fifth table:

The relational schema for fifth table is given below:

COLLEGE(COLL_CODE, COLL_NAME)

  • Here, “COLL_CODE” indicates the primary key.
  • The relation is in third normal form (3NF), since there is no transitive dependency and no repeated attributes.

The representation of dependency diagram in fifth table is shown below:

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  6

Sixth table:

The relational schema for sixth table is given below:

ADVISOR(ADV_NUM, ADV_LASTNAME, ADV_OFFICE, ADV_BUILDING, ADV_PHONE)

  • Here, “ADV_NUM” indicates the primary key.
  • The dotted transitive dependency line specifies that dependency is interpretation.
  • The relation is in third normal form (2NF), since there is transitive dependency in this table.

The representation of dependency diagram in sixth table is shown below:

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  7

c.

Explanation of Solution

The representation of Crow’s Foot Entity Relational Diagram (ERD) is shown below:

The following data model shows the solution for the given question.

DATABASE SYSTEMS, Chapter 6, Problem 4P , additional homework tip  8

Explanation:

  • In the above data model, the college owns more than one department.
    • The “COLLEGE” entity contains the “COLL_CODE” and “COLL_NAME” attributes.
      • The primary key of “COLL_CODE” entity is “INV_NUM”.
    • The “DEPARTMENT” entity contains the “DEPT_CODE”, “DEPT_NAME”, “DEPT_PHONE” and “COLL_CODE” attributes.
      • The primary of this entity is “DEPT_CODE”.
      • The foreign key of this entity is “COLL_CODE”.
  • The department offers more than one major.
    • The “MAJOR” entity contains the “MAJOR_CODE”, “MAJOR_NAME”, and “DEPT_CODE” attributes.
      • The primary key of “MAJOR_CODE” for this entity.
      • The foreign key of this entity is “VEND_CODE”.
  • The major attracts more than one student.
    • The “STUDENT” entity contains the “STU_NUM”, “STU_LNAME”, “STU_CLASS”, “STU_HOURS”, “STU_GPA”, “MAJOR_CODE”, and “ADV_NUM” attributes.
      • The primary key of “STU_NUM” entity.
      • The foreign key of this entity is “MAJOR_CODE” and “ADV_NUM”.
  • The building houses more than one advisor.
    • The “ADVISOR” entity contains the “ADV_NUM”, “DEPT_CODE”, “BLDG_CODE”, “ADV_LNAME”, “ADV_OFFICE”, and “ADV_PHONE” attributes.
      • The primary key of “ADV_NUM” entity.
      • The foreign key of this entity is “DEPT_CODE” and “BLDG_CODE”.
    • The “BUILDING” entity contains the “BLDG_CODE”, “BLDG_NAME” and “BLDG_MANAGER” attributes.
      • The primary key of “BLDG_CODE” entity.
  • The advisor advises more than one student.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
module: java   Question3:                                                                                                                                    (30 MARKS) Passenger Rail Agency for South Africa Train Scheduling System Problem Statement Design and implement a train scheduling system for Prasa railway network. The system should handle the following functionalities: 1. Scheduling trains: Allow the addition of train schedules, ensuring that no two trains use the same platform at the same time at any station. 2. Dynamic updates: Enable adding new train schedules and canceling existing ones. 3. Real-time simulation: Use multithreading to simulate the operation of trains (e.g., arriving, departing). 4. Data management: Use ArrayList to manage train schedules and platform assignments. Requirements 1. Add Train Schedule, Cancel Scheduled Train, View Train Schedules and Platform Management 2. Concurrency Handling with Multithreading i.e Use threads to simulate train operations, Each…
java: Question 1: (40 MARKS) E-Hailing Bicycle Management System Case Study:An e-hailing company that rents out bicycles needs a system to manage its bicycles, users, and borrowing process. Each user can borrow up to 2 bicycles at a time, specifically for families with children 18 years or below. The system must track the bicycles (name, make, type, and availability) and users (name, ID, and borrowed bicycles). The company also wants to ensure that the system uses a multidimensional array to store information about the bicycles. Requirements: Add and View Bicycles: Borrow Bicycles: Return Bicycles Display Borrowed Bicycles and Search for a bicycle Create a menu-driven program to implement the above. Sample Output: Add Bicycle View All Bicycles Borrow Bicycle Return Bicycle View Borrowed Bicycles Search Bicycle ExitEnter your choice: Question 2 (30 MARKS) Pentagonal Numbers Problem Statement Create a Java program that will display the first 40 pentagonal…
Request for Java Programming Expert Assistance - Module: Java 731 Please assign this to a human expert for detailed Java programming solutions. The AI keeps attempting to answer it, but I need expert-level implementation. Question 1 (40 MARKS) - E-Hailing Bicycle Management System Case Study:An e-hailing company needs a Java system to manage bicycle rentals. Key requirements: Users (families with children ≤18) can borrow up to 2 bicycles. Track bicycles (name, make, type, availability) and users (name, ID, borrowed bikes). Use a multidimensional array for bicycle data. Functionalities: Add/view bicycles. Borrow/return bicycles. Display borrowed bikes and search functionality. Menu-driven program with the following options:   Copy 1. Add Bicycle 2. View All Bicycles 3. Borrow Bicycle 4. Return Bicycle 5. View Borrowed Bicycles 6. Search Bicycle 7. Exit Question 2 (30 MARKS) - Pentagonal Numbers Problem Statement:Write a Java program to display the first 40…
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
Fundamentals of Information Systems
Computer Science
ISBN:9781337097536
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning