Question

For each relational schema below, identify PK and FK of each table. Example: Use the following...

  1. For each relational schema below, identify PK and FK of each table.

Example: Use the following format:

Emp (Emp#, EmpName, Dept#)

Dept (Dept#, DeptName)

Emp table:

            PK: Emp#

FOREIGN KEY Dept# REFERENCES Dept (Dept#)

Dept Table:

PK: Dept#

FK: None

  1. Game database (5)

Game (GameID, GameTitle, GenreID, PublisherID, SeriesTitle, GamePrice, GameYear)

Genre (GenreID, GenreTitle)

Publisher (PublisherID, PublisherName, PublisherCountry, PublisherAddress, PublisherPhone)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Dear Student ,

As per the requirement submitted above , kindly find the below solution.

Game database :

Game table :

  • PK:GameID
  • FK:FOREIGN KEY GenreID REFERENCES Genre (GenreID)
  • FK:FOREIGN KEY PublisherID REFERENCES Publisher (PublisherID)

Genre table :

  • PK:GenreID
  • FK:None

Publisher table :

  • PK :PublisherID
  • FK:None

NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.

Add a comment
Know the answer?
Add Answer to:
For each relational schema below, identify PK and FK of each table. Example: Use the following...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part I. Mapping an (E)ER schema to a relational database schema (46 points) NOTE o Each...

    Part I. Mapping an (E)ER schema to a relational database schema (46 points) NOTE o Each relation sachem should have a primary key (PK) when you answer. • To present the reference table of the foreign key (e.g., FK, FK1, K2), use an arrow. Do not use the relationship cardinality symbols of crow's foot notation in the relational database schema. o It is not required to specify the domain constraint (e.g., data type and length) of each attribute. 1. (12...

  • Question: Use the technique of normalization to validate the structure of your relational schema. Demonstrate that...

    Question: Use the technique of normalization to validate the structure of your relational schema. Demonstrate that each of your relations is in third normal form (3NF) by displaying the functional dependencies between attributes in each relation. Note, if any of your relations are not in 3NF, this may indicate that your ER model is structurally incorrect or that you have introduced errors in the process of deriving relations from your model. The Relational Schema is as follows: Department (deptName, phone,...

  • TM-315 DATABASE SYSTEMS Please help me to draw an ERD and the Relational Schema and please...

    TM-315 DATABASE SYSTEMS Please help me to draw an ERD and the Relational Schema and please mark the Primary and Foreign Key ..... Deliverable: Word document with grade sheet followed by Part 1 ERD and the Part 2 relational schema. Part 1: Draw the ERD for the following situation. 8 pts Be sure to: Convert all many-to-many relationships to associative entities. Make sure each regular entity has an appropriate identifier. Make sure attribute names are unique within the ERD Wally...

  • Answer each of the following questions. The questions are based on the following relational schema: Emp(*eid:...

    Answer each of the following questions. The questions are based on the following relational schema: Emp(*eid: integer¬, ename: string, age: integer, salary: decimal, doj: date) Works(*eid: integer, *did: integer, no_of_hours: integer) Dept(*did: integer, dname: string, budget: real, managerid: integer) a) Give an example of a foreign key constraint that involves the Dept relation. b) What are the options for enforcing this constraint when a user attempts to delete a Dept tuple? c) Define the Dept relation in SQL so that...

  • Assignment 7 Activities: Using the order form below identify entities to be used in a relational...

    Assignment 7 Activities: Using the order form below identify entities to be used in a relational database. Normalize to first, second, and third normal form. Clearly identify within each form with the tables in each form and specify any assumptions made. Utilize the following format for each table: TableName(attribute,etc)          Indicate Primary Key by underlining the attribute name. List Foreign Keys as such FK=attribute, below the table listing. Example: Sales Rep (EmployeeID, MTD Sales, YTD Sales, MTD Commission, YTD Commission,...

  • VEND CODE -> VEND NAME Perry Computer Inc. uses the following INVOICE table keep track of...

    VEND CODE -> VEND NAME Perry Computer Inc. uses the following INVOICE table keep track of their data. Relational schema is listed below. INVOICE (INV NUM, PROD NUM, SALE_DATE, PROD_DESCRIPTION, VEND_CODE, VEND_NAME, NUM SOLD, PROD_PRICE) Where: INV NUM -> SALE DATE PROD NUM-PROD DESCRIPTION, VEND_CODE, VEND NAME, PROD PRICE QUESTION: C. Propose a better design (with no data redundancy) and indicate the normal form of your table(s). Please use relational schema format like the INVOICE table in Perry's original design....

  • QUESTION B1. (7 marks) This question assumes the following relational schema Employee (employeeNumber, lastName, firstName, DOB,...

    QUESTION B1. (7 marks) This question assumes the following relational schema Employee (employeeNumber, lastName, firstName, DOB, HireDate, Position Salary, Dept) Primary Key: employeeNumber Foreign key: Dept refers to DeptID in Department Department (DeptID, DeptName, DeptLocation) Primary Key: DeptID You have been given the following MySQL stored procedure: CREATE PROCEDURE Find_EmployeeName (IN employeeNo INT (11), OUT employeeName VARCHAR (60)) BEGIN SELECT concat(firstName, '', lastName) INTO employeeName FROM employees WHERE employeeNumber employeeNo; END (a) (2 marks) Name the two types of parameters...

  • Need help completing this schema below. 2. (3.14 Elmasri-6e)- Consider the following six relations for an...

    Need help completing this schema below. 2. (3.14 Elmasri-6e)- Consider the following six relations for an order-processing database application in a company CUSTOMER (Cust#, Cnam City) ORDER (Orderf., Qdate Custf. QrdAmt ORDER ITEM (Order, Item#, Qty) ITEM Citen Unitaptice) SHIPMENT (Order Warehouse Ship. date) WAREHOUSE (Warehouses City) Here, Qrd Amt refers to total dollar amount of an order, Qdate is the date the order was placed; Ship.date is the date an order (or part of an order) is shipped from...

  • Question 3 refers to the relational database with a schema described below: The hospital database contains...

    Question 3 refers to the relational database with a schema described below: The hospital database contains information about the treatments of patients performed by the doctors. The database also contains information on the prescriptions ordered by the doctors. The schemas of relational tables, the meanings of attributes and specifications of primary, candidate, and foreign keys are given below. HOSPITAL HospitalCd Name Address Estate PostalCode EstablishedDate Hospital Code Name of the hospital Address of the hospital The estate where the hospital...

  • QUESTION 2 Copy of 1-3 Vocab Match the vocabulary word for each definition below A relational...

    QUESTION 2 Copy of 1-3 Vocab Match the vocabulary word for each definition below A relational database chart that is used to map the infor-mation from the entity relationship diagram A. Nulls the unique identifier for each row of data B. Unique Links data in one table to the data in a second table by re-ferring to the PK column in the second table C. Table instance chart Indicates if a column must contain a value D. Foreign key (FK)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT