Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92231252
  • Price:- $50

Guranteed 36 Hours Delivery, In Price:- $50

Have any Question?


Related Questions in DBMS

A taking an unnormalised list describe how you would

(a) Taking an unnormalised list, describe how you would normalise it using the normal forms technique and show how the result of this method is used. (b) You are currently in the process of developing a RDBMS for a natio ...

Question we can sort a given set of n numbers by first

Question : We can sort a given set of n numbers by first building a binary search tree containing these numbers (using TREE-INSERT repeatedly to insert the numbers one by one) and then printing the numbers by an inorder ...

Sqlwrite a select statement that returns one column from

SQL Write a SELECT statement that returns one column from the Vendor table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Format it as follows: last name, comma, first nam ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

Suppose that we have a table of house prices and a table of

Suppose that we have a table of house prices and a table of zip codes: • hprices(hid (PK),address,bedrooms,price,zipcode) • zipcodes(zipcode (PK),state) Write a SQL query that finds the average, maximum, and minimum pric ...

Stored procedure please create the following stored

Stored procedure. Please create the following stored routines using CPS3740_2017S database using the tables in dreamhome database. xxxx is your email id 1) Implement a stored procedure p3Q21_xxxx to display the Branch ci ...

Questionsuppose a prolog database exists that gives

Question: Suppose a Prolog database exists that gives information about states and capital cities. Some cities are big, others small. Some states are eastern, others are western. a. Write a query to find all the small ca ...

In this section the student is required to develop a

In this section, the student is required to develop a technical debate based on his/her understanding using available scientific literature. The answer to this question should not exceed three A4 Pages. In the traditiona ...

Databases assignment - monash library services monlib case

Databases Assignment - Monash Library Services (MonLib) Case Study TASK 1: Data Definition For this task you are required to complete the following: 1.1 - Add to your solutions script, the CREATE TABLE and CONSTRAINT def ...

Question sql injection is in the top 10 owasp and common

Question : SQL Injection is in the top 10 OWASP and Common Weakness Enumeration. Using MySQL and PHP, show your own very short and simple application that is vulnerable to this attack. Provide another version that mitiga ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As