Identify the primary key and any foreign keys

Assignment Help Database Management System
Reference no: EM131421469

Problem 1.

For each table in the database, identify the primary key and any foreign key(s). If a table has a composite or multi-column key, then denote it using the plus sign with Columnname1 + Columnname2. For each foreign key, name the table and primary key it references. Use the notation Tablename.Columnnameto indicate the table and column referenced by a foreign key.If a table doesn't have a foreign key, write None in the assigned space.

Table

Primary Key

Foreign Key(s)

Table and columns of the primary key referenced by the foreign key (if any).

INVOICE

 

 

 

 

INVOICE_LINE

 

 

 

 

CUSTOMER

 

 

 

 

PRODUCT

 

 

 

 

REPRESENTATIVE

 

 

 

 

Problem 2.

Based upon the data, do the tables exhibit entity integrity? Answer Yes or No, then explain your answer by citing the evidence that entity integrity is satisfied.

Table

Entity integrity

Explanation

INVOICE

 

 

 

INVOICE_LINE

 

 

 

CUSTOMER

 

 

 

PRODUCT

 

 

 

REPRESENTATIVE

 

 

 

Problem 3.

Do the tables exhibit REFERENTIAL integrity? Answer Yes or No, then explain your answer by citing the evidence that the rules for foreign keys are satisfied. Write Not Applicable if the table doesn't have a foreign key. Remember that a foreign key can only reference a primary key or column(s) with a unique constraint.

Table

Referential integrity

Explanation

INVOICE

 

 

 

INVOICE_LINE

 

 

 

CUSTOMER

 

 

 

PRODUCT

 

 

 

REPRESENTATIVE

 

 

 

Problem 4. Draw the entity relationship diagram (ERD) to show the relationships among the five tables. Include the connectivities and position the 1's and M's or N's on the correct side. Omit the ovals with attributes (a relational schema is better if you want to show columnnames).

You can insert other lines or geometrical shapes from INSERT (on the menubar) | Shapes

Your supply of draggable 1s, Ms, lines, and rectangles. The rectangle with the diamond for the bridge table is grouped. You can shorten/lengthen the lines by selecting the line, then dragging the end. Extra objects supplied by the professor are $100 each.

1929_Figure.jpg

Problem 5. Draw the relational schema to show the relationships between the tables. In a relational schema, each table has a name (in the gray area below) and columns are listed below. Primary keys are bolded or underlined. Draw your lines between tables so they show which columns connect the tables, and position your 1's and ∞'s correctly above the lines. Relational schemas use ∞ for Many.

738_Figure1.jpg

Bridge Tables

Copy and edit this file, CS60 Project 4 2016Fall Bridge Tables.docx, which is stored at \\Acshare\busdata\ROGLER_HAROLD\CS60 Database Concepts\CS60 Projects. Rename it asCS60_4_LastName_FirstName.docx and edit the footer so your filename appears there.

When two tables have a many-to-many (M:N) relationship, the database must be redesigned to include a bridge table so you end up with two 1:M relationships. Similarly, if one table has a many-to-many unary or recursive relationship with itself, the database must be redesigned to include a bridge table.

The following describe tables with M:N relationships. As described, databases1-5 have binary relationships (relationships between two tables), while database 6 has a unary relationship (a relationship between a table and itself).

1. A part can be supplied by many suppliers, and each supplier can provide many parts.

2. An employee of an organization can have many dependents (sons, daughters, etc.), and each dependent can be the dependent of many employees if both parents work for the organization.

3. A professor normally teaches many sections of a course, and each section could be co-taught by several professors. Note that some courses may not be taught in some semesters, other courses have one section in a semester, and other courses (such as CS3 and CS50) have many sections in some semesters. A professor is assigned to teach a section (or several sections) of a course.

903_Figure2.jpg

4. A certificate requires the completion of many courses, and each course can be part of many certificates. For example, CS3 appears in all four large certificates offered by the CSIS Department. CS60 also appears as part of four Certificates of Achievement (Computer Programming, Web Programmer, Database Applications Developer, and Computer Science).

5. A painter (of murals that hang on the wall) can paint many murals, but each mural may have been painted by many painters (who each specialize in eyes, leaves, surf, hands, landscapes, etc.).

6. A person has many friends (like on Facebook) and each friend has many friends. How are you going to keep track of all these friendships? This table has a unary M:N relationship with itself. How could you handle the problem of Bill and Mary are friends, but also not storing that Mary and Bill are friends?

For any three of the above, redesign the databases so your new design has no M:N relationships. Using the template below, draw the entity relationship diagram (ERD) of your new design. Name your tables descriptively. Include the connectivities and position the 1's and M's or N's on the correct side. Use the circle bumped up against a rectangle to indicate optional participation, and use a straight line coming into the rectangle to indicate mandatory participation. Include the cardinalities by editing the (1, 1)s and positioning them. The tables are in textboxes. Omit the ovals with attributes in your ERD (skip the columnnames).

1652_Figure3.jpg

Also for each of your three designs, draw the relational schema to show the relationships between your tables. Use descriptive names for the columns, and follow the rules of no synonyms and no homonyms. Draw your lines between tables so they show which columns connect the tables, and position your 1's and ∞'s correctly. Bold your primary keys. The tables are within textboxes that you can select and move around.

1384_Figure4.jpg

Please edit your footer and include your filename CS60_3_Last_First.docx (with your names) inside your file. Copy/paste your file to the server Zeus:

\\Zeus\data\ROGLER_HAROLD\CS60 Database Concepts and Applications

as described in the syllabus. Check the file size to make sure it's not 0KB (empty) and the file date and time indicate the final version of your file.

Attachment:- tables.rar

Reference no: EM131421469

Questions Cloud

Compare merit pay systems and sales compensation : What is the cost of underage for a dressed jersey? Compare and contrast merit pay systems and sales compensation.
Business professionals to endorse use of incentive pay plans : There is currently a tendency among business professionals to endorse the use of incentive pay plans. Identify two jobs for which individual incentive pay is appropriate and two jobs for which individual incentive pay is inappropriate. Be sure to inc..
American legal system : In the American legal system, a person charged with a crime must pay his/her own legal defense fees even if he/she is found “not guilty” at trial – this could cost tens or hundreds of thousands of dollars; however, if the person charged with a crime ..
Which best explains how garcia’s word choice helps : Read the excerpt from “First Generation” of Dreaming in Cuban, by Cristina Garcia. Which best explains how Garcia’s word choice helps establish her voice in the excerpt?
Identify the primary key and any foreign keys : CS60 Project 3 part 22017FallUse the notation Tablename.Columnnameto indicate the table and column referenced by a foreign key.If a table doesn't have a foreign key, write None in explain your answer by citing the evidence that the rules for foreig..
Research paper analyzed by spss : Research paper analyzed by spss - The variables are BMI Height - waist circunferences - Also you need to analyse the differences results from a questionaire given before and after a training the answer key is attached can you please write a report..
Draw the gross and net payoff diagrams for a portfolio : FINC 430 (Finance 1)Portfolio 1 break-even. Draw the gross and net payoff diagrams for a portfolio which is constructed from buying one call option with a strike price of 45 and selling one call option with a strike price of 50. The cost of the fi..
Determine the most accurate forecast method : Plot the time series data and comment on the pattern you observe - Use weighted moving average method to forecast the demand for 51 days and Use exponential smoothing with optimal α to forecast the demand for 51 days and Use multiple regression metho..
Business model and go-to-market philosophy : What industry or sector of the economy are you addressing? Why is this market attractive? What segment of the overall market are you pursuing and Business Model and Go-to-Market Philosophy

Reviews

Write a Review

Database Management System Questions & Answers

  Information on production capacities for the market

Information applies to questions 13 thru 18: Consider the following information on production capacities for the market for a (commodity) metal and its associated marginal costs (all other costs have been sunk). Please select the correct answer and t..

  How do these change with variation in the condence values

Looking at the predictive accuracy (Percent correct) results for tree learning on these data sets, has learning improved accuracy over the baseline ?

  Create a new dataset by selecting website add new item

Create a new dataset by selecting Website Add New Item. Under Templates, select the Dataset item. Enter dsUserActivity.xsd for the name. Click Add.

  Design a database for a small medical practice

Narrative description of the "medical practice" database assignment: Design a database for a small medical practice with several physicians. The purpose of the database is to support the administrative functions such as billing, scheduling and pat..

  Determine what system privileges the dvonline role has

Determine what system privileges the DVONLINE role has. Determine what system privileges your account has been granted

  Explain what is meant by the process of denormalization

M359 Relational databases: theory and practice Assignment. Use the block notes to answer the following questions: Explain what is meant by the process of denormalization and how it is done. Explain why we may need to use denormalization (i.e. provide..

  Problem 1suppose you have a relation schema about teaching

problem 1suppose you have a relation schema about teaching classes that has the following attributes class instructor

  Create class named incident that consists of public property

Create a class named Incident that consists of one public property for each column in the Incidents table and a method named CustomerIncidentDisplay that formats an incident for display on the Customer Survey page.

  Create an example model of this relationship using the mysql

Come up with an original example of a one to many unary relationship. Create an example model of this relationship using the MySQL Workbench data modeler.

  Compare and contrast the advantages of servlets of cgi

Describe the following CLI's and Database Gateways and Describe their architecture, components and challenges.

  Increase all employees'' salaries by 5%.

Choose a job_title_code in the job_title table. Increase the Minimum_salary and Maximum_salary for this job_title_code.

  Describe the importance of using sub queries in a database

Describe the importance of using sub queries in a database system

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd