[Solved] DSC450 Assignment-1

$25

File Name: DSC450_Assignment_1.zip
File Size: 178.98 KB

SKU: [Solved] DSC450 Assignment-1 Category: Tag:
5/5 - (1 vote)

Part 1

  1. Create a relational schema with underlined (primary) keys and arrows connecting foreign keys and primary keys for a database containing the following information. If you have any difficulty drawing arrows, you can write foreign key information in a sentence instead.
  • Authors have Last Name, Firstname, ID, and Birthdate (identified by ID)
  • Publishers have Name, ID, address (identified by ID)
  • Books have ISBN, Title, Publisher (each book has a unique publisher and can be identified by ISBN).
  • Authors Write Books; since many authors can co-author a book, we need to know the rank of an author contributing to a book, stored in this table (i.e. a number 1, 2, 3; for single author books, this number is 1).

NOTE: Part 2 has some sample data which may be helpful.

  1. Create a relational schema for students and student advisors
  • Students have First Name, Last Name, DOB, Telephone and a reference to their advisor
  • Advisors have ID, Name, Address, Research Area

Part 2

  • Using your logical schema from Part1-a, write the necessary SQL DDL script to create the tables. Be sure to specify every primary key and every foreign key. You can make reasonable assumptions regarding the attribute domains (note that uniformly setting every column to VARCHAR2(100) is not reasonable).
  • Using logical schema from Part1-b write the necessary SQL DDL script to create the tables. Be sure to specify every primary key and every foreign key. For Students table, clearly state the assumptions you have made when choosing a primary key. You can make reasonable assumptions regarding the attribute domains.
  • Write SQL INSERT statements to populate your database from Part1-a with the following data (NOTE: remember that strings would need to use single quotes, e.g., Asimov)

Part 3

You want to create a relation representing US presidents. Suppose that the following is true of the data you want to represent:

  • No two presidents have the same name and year of birth
  • No two presidents have the same inauguration date
  • All presidents have a name, a year of birth, and have been inaugurated into office
  • Not all presidents are affiliated with a political party

Write a valid create table statement for the relation.

Part 4

Let R(ABCDEFGH) satisfy the following functional dependencies:

A B, CH A, B E, BD C, EG H, DE F.

Use transitive rule to find additional F.D.s that are satisfied by R?

Part 5

Consider a MEETING table that records information about meetings between clients and executives in the company. Each record contains the names of the client and the executives name as well as the office number, floor and the building. Finally, each record contains the city that the building is in and the date of the meeting. The table is in First Normal Form and the primary key is (Client, Office).

(Date, Client, Office, Floor, Building, City, Executive)

You are given the following functional dependencies:

Building City

Office Floor, Building, City

Client Executive

Client, Office Date

  1. Remove any existing partial dependencies and convert the logical schema to the Second Normal Form. Please remember that when performing schema decomposition, you need to denote primary key for every new table as well as the foreign key that will allow us to reconstruct the original data.
  1. Remove any existing transitive dependencies to create a set of logical schemas in Third Normal Form. Again, remember to denote primary keys and foreign keys (including which primary key those foreign keys point to).

Part 6

Consider a table that stores information about students, student name, GPA, honors list and the credits that the student had completed so far.

(First, Last, GPA, Honor, Credits)

You are given the following functional dependencies

First, Last GPA, Honor, Credits

GPA Honor

  1. Is this schema in Second Normal Form? If not, please state which FDs violate 2NF and decompose the schema accordingly.
  1. Is this schema in Third Normal Form? If not, please state which FDs violate 3NF and decompose the schema accordingly.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] DSC450 Assignment-1[Solved] DSC450 Assignment-1
$25