For the relation schema Player (ID, Name, Birthday,
Address, Email, PhoneNumber, PlayPos) assume that ID is
the primary key and no Player’s names are the same (i.e., a
Players’s name can uniquely identify a Player).
1. Please write down all the non-trivial functional dependencies
that hold in the schema Player.
2. Please state all the candidate keys of the schema Player.
1. NON-Trivial Functional Dependency
If a functional dependency X -> Y holds true when Y is not a subset of X then this type of dependency is known as non-trivial dependency.
For the given schema Player the set of non-trivial functional dependency are-
ID -> Birthday, Address, Email, Phone, PlayPos
Name -> Birthday, Address, Email, Phone, PlayPos
Email -> ID, Name
Phone -> ID, Name
ID -> Name
Name -> ID
In each of given above functional dependency Y is not a sub set of X.
2.
A candidate key is a set of column in a relation which uniquely identifies a record in a table without referring to the other attributes. A table may have one or more candidate key. It is a minimal set of attributes necessary to identify a tuple in a relation.
In the given relation Player the attribute ID and Name both can uniquely identify a tuple, so the candidate key for relation Player would be-
{ID}
{Name}
For the relation schema Player (ID, Name, Birthday, Address, Email, PhoneNumber, PlayPos) assume that ID is...
Consider the following relations for course-enrollment database in a university: STUDENT(S-ID,S-Name, Department, Birth-date) COURSE(C-ID, C-Name, Department) ENROLL(S-ID, C-ID, Grade) TEXTBOOK(B-ISBN, B-Title, Publisher, Author) BOOK-ADOPTION(C-ID, B-ISBN) (a) Draw the database relational schema and show the primary keys and referential integrity constraints on the schema. (b) How many superkeys does the relation TEXTBOOK have? List ALL of them. (c) Now assume each COURSE has distinct C-Name. (i) If C-ID is a primary key, what are the candidate keys and the unique keys...
Databases question Consider the following relation that stores information about students living in dormitories at a college: a. Using these assumptions and stating any others you need to make, list all the non-trivial functional dependencies for this relation b. What are the candidate keys for this relation? Identify the primary keys c. Is this relation in third normal form? if not find a 3NF lossless join decomposition of College that preserves dependencies. d.Is the relation or the resulting set of...
Please help me answer the following questions regarding data relationship tables. Employee ID First Name Last Name email Title Address Extension Department Department ID Hiring Date Department Phone # 0001 John Smith jsmith Accountant 1300 West st 5775 Accounting 2100 8/1998 407-366-5700 0002 Brian Miller badams Admin Assistant 1552 Palm dr 5367 Human resource 2300 4/1995 407-366-5300 0003 James Miller miller Inventory Manager 2713 Buck rd 5432 Production 2520 8/1998 407-366-5400 0004 John Jackson jackson_sam Sales Person 433 tree dr...
For all problems, use the following schema: Musician(id, first_name, last_name, instrument, band_id) Band(id, name, years_together) Show(id, venue_id, date) Played_in(band_id, show_id) Venue(id, name, address) Album(id, name, year, band_id, genre_id) Genre(id, name, description) Song(id, name, album_id) Primary keys are in bold, foreign keys are in italics. For each problem, write a query once using relational algebra, and again using SQL. 12. Find the names of all bands that have a member who plays "Guitar", OR have a member that plays "Keyboard". 13....
Language: SQL - Normalization and Functional Dependencies Part 4 Normalization and Functional Dependencies Consider the following relation R(A, B, C, D)and functional dependencies F that hold over this relation. F=D → C, A B,A-C Question 4.1 (3 Points) Determine all candidate keys of R Question 4.2 (4 Points) Compute the attribute cover of X-(C, B) according to F Question 43 (5 Points) Compute the canonical cover of F.Show each step of the generation according to the algorithm shown in class....
PART A: The schema for the Jefferson Dance Company is shown below. CUSTOMER (CUSTID, NAME, ZIP, BALANCE) DANCESTEP (STEPID, NAME) GLESSONS_TAKEN (GLESSONID, CUSTID) GROUP_LESSON (GLESSONID, INSTID, FEE, DATE, TIME, STEPID) INSTRUCTOR (INSTID, NAME, ZIP) MASTERED_STEPS (INSTID, STEPID) PRIVATE_LESSON (PLESSONID, CUSTID, INSTID, FEE, DATE, TIME, STEPID) Normalize this database using the following example for the CUSTOMER table as a guide. Table: CUSTOMER (CUSTID, NAME, ZIP, BALANCE) Functional Dependencies: CUSTID ® NAME, ZIP, BALANCE Key: CUSTID Description YES ...
Normalisation Consider the following relation schema about project meetings: PMG(projID, title, type, manager, jobID, start-date, end-date, contractor, contractNo) Some notes on the semantics of attributes are as follows: • Each project has a unique project ID (projID) and also has a title, type and manager. Each manager has a specialty project type. • A project often contracts jobs to contractors with start-date and end-date. Contracts are identified by contract numbers (contractNo), but contract details are out of the scope of...
DBMS class funcbonal U in & set tion of the principle of closure ot of tunca te key(s) of a relation schen a set of functional superkey n attribute at a time from K unt K ence rules for of an attribute uses a It is possible to progressively dencies through the systematic ond method for identitying the candida l dependencies that prevai hat of decomposition. In this method. given Universal Relation Schema (URS), the superkey, K, consisting of a...
6. Create a typical family relationship-spouse, father, and mother-in a single 3NF relation. Include Name and Date of Birth as non-key attributes. Assume that each family member has only one spouse, one father, and one mother. Show foreign keys with dashed undedine, and Primary keys with solid underline. (Come up with your own field names). (3 points) 6. Create a typical family relationship-spouse, father, and mother-in a single 3NF relation. Include Name and Date of Birth as non-key attributes. Assume...
Question 2: SOL (10pts) The following relation schema can be used to register information on the repayments on micro loans Repayment(borrower id,name,address,loan amount, request date,repayment_ date,repayment a mount) A borrower is identified with a unique borrower id, and has only one address. Borrowers can have multiple simultancous loans, but they always have different request dates. The borrower can make multiple repayments on the same day, but not more than one repayment per loan per day. a) State a primary key...