Question

In: Computer Science

4. Consider the following two alternative ER designs: • a ternary relationship set R that relates...

4. Consider the following two alternative ER designs:

• a ternary relationship set R that relates entity sets A, B, and C.

• a design in which R is replaced by an entity set E with E related to A, B, and C by 3 binary relationship sets RA, RB and RC , respectively.

Explain why, as stated, these two may not be equivalent. Then explain what could be done to make them equivalent by fixing each of RA, RB and RC , to be 1-1. m-m, 1-m, or m-1.

Solutions

Expert Solution

Solution 1:

  1. A Ternary Relationship Set R that relates entities A,B C:

Answer: Relationship connects two objects( Entities) in a particular Context.

             There are two types of Relationships:

i)Binary Relationship: Between two Entities only

       ii) Ternary Relationship: Between Three Entities an Association relationship. It is a relationship derived from the basic relationship of existing two Entities A,B. That Relationship denoted as the third Entity called C.

Example: A Company(A) has Many Employees so Employee(B) is Related to his Company by Works for relation. From That relation a new entity called JOB(C) is derived and used as Job.

Solution2 :

  1. )Design in which R is replaced by an entity set E with E related to A, B, and C by 3 binary relationship sets RA, RB and RC , respectively.

Explain why, as stated, these two may not be equivalent. Then explain what could be done to make them equivalent by fixing each of RA, RB and RC , to be 1-1. m-m, 1-m, or m-1.

Answer:

The above diagram shows the relationships between Entity A and B. B and C, A and C;

  • For example: An Employee( A) works for Company(B) . Multiplicity is An employee belongs to one Company( 1 – 1 from employee point of view). In special cases an employee belongs to many companies due to shifting of companies.
  • A company has many Employees(so Multiplicity is 1-M between Company and Employee
  • The relation between Entity A(Employee), Entity C(Job) is doing or Performs ( ie Employee performs job)and Multiplicity is 1-1 An employee perform only one job at a time
  • The relation between Entity B(Company), Entity C(Job) is offers(A Company offers many jobs) and Multiplicity is 1- M .

Both models of Problem a and b is looking varied but exhibits the same behavior.So Ternary relationship concept simplifies the data model.


Related Solutions

The Dept. of Transportation is comparing two alternative pavement designs with the following cost characteristics. Determine...
The Dept. of Transportation is comparing two alternative pavement designs with the following cost characteristics. Determine the least expensive alternative with a method of your choice. i=5% per year compounded annually.   Construction Cost at year 0 Maintenance Cost from years 1-20 Year A B 0 $450,000 $700,000 1 2 3 $40,000 4 5 $50,000 6 $40,000 7 8 9 $40,000 10 $50,000 11 12 End of Service 13 14 15 $500,000 16 17 18 19 20 End of Service
A new highway is to be constructed with two alternative designs. Design A calls for a...
A new highway is to be constructed with two alternative designs. Design A calls for a concrete pavement costing $90 per foot with a 20-year life; two paved ditches costing $3 per foot each; and three box culverts every mile, each costing $9,000 and having a 20-year life. Annual maintenance will cost $1,800 per mile; the culverts must be cleaned every five years at a cost of $450 each per mile. Design B calls for a bituminous pavement costing $45...
SQL code Create entities (tables) to represent the following ternary relationship. Note that we are not...
SQL code Create entities (tables) to represent the following ternary relationship. Note that we are not storing all the required information in these entities to simplify it. The underlined attributes are the primary keys. Don’t forget to set the constraints for primary and foreign keys: •A student entity ( bannerId, first name, last name, date of birth) •A course entity ( crnNumber, course name, # of credits) •An examination entity ( examId, exam_type, exam_date). (exam types can be “Midterm”, “Final”,...
(1)Consider the following estimated model that relates the demand for money (Md) to interest rate (R),...
(1)Consider the following estimated model that relates the demand for money (Md) to interest rate (R), real income (Y) and the lagged money demand (Mt-1 )                          ^                  ln Mdt = 2.00 – 0.10 ln Rt + 0.70 ln Yt – 0.60 Mt-1                          Se                  (0.10)          (0.35)          (0.10)                                   R squared = 0.90     DW = 1.80    n = 8 (a)Would it be appropriate to test for first order serial correlation in this model with the “regular” DW test ?...
4. Show that the set A = {fm,b : R → R | m does not...
4. Show that the set A = {fm,b : R → R | m does not equal 0 and fm,b(x) = mx + b, m, b ∈ R} forms a group under composition of functions. (The set A is called the set of affine functions from R to R.)
4. The relationship between marginal and average costs Consider the following scenario to understand the relationship...
4. The relationship between marginal and average costs Consider the following scenario to understand the relationship between marginal and average values. Suppose Larry is a professional basketball player, and his game log for free throws can be summarized in the following table. Fill in the columns with Larry's free-throw percentage for each game and his overall free-throw average after each game. Game Game Result Season Total Game Free-Throw Percentage Average Free-Throw Percentage 1 6/8 6/8 75 75 2 2/8 8/16...
Consider the following two mutually exclusive cost alternatives: Alternative A Alternative B Capital Investment $8,000 $16,000...
Consider the following two mutually exclusive cost alternatives: Alternative A Alternative B Capital Investment $8,000 $16,000 Annual Expenses $3,500 $3,400 Useful life 8 years 12 years Market value at the end of useful life 0 $3,000 Given MARR is 10% per year, answer the following: Assuming Repeatability applies, determine which alternatives should be selected. b. For a study period of 12 years, and assuming repeatability does not hold for the Alternative A consider there will be an annual contracting cost...
1. Consider the function f: R→R, where R represents the set of all real numbers and...
1. Consider the function f: R→R, where R represents the set of all real numbers and for every x ϵ R, f(x) = x3. Which of the following statements is true? a. f is onto but not one-to-one. b. f is one-to-one but not onto. c. f is neither one-to-one nor onto. d. f is one-to-one and onto. 2. Consider the function g: Z→ {0, 1, 2, 3, 4, 5}, where Z represents the set of all integers and for...
Consider a family with a mother, father, and two children. Consider the following set of events:...
Consider a family with a mother, father, and two children. Consider the following set of events: A1 = {mother has influenza} A2 = {father has influenza} A3 = {first child has influenza} A4 = {second child has influenza} B = {at least one child has influenza} C = {at least one parent has influenza} D = {at least one family member has influenza} 1. What does A1 ∪ A2 mean? Which answer is correct? Please provide explanation a. Both the...
Consider the region R, which is bounded by the curves  y=3x and x=y(4−y). (a) Set up, but...
Consider the region R, which is bounded by the curves  y=3x and x=y(4−y). (a) Set up, but DO NOT SOLVE, an integral to find the area of the region RR. (b) Set up, but DO NOT SOLVE, an integral to find the volume of the solid resulting from revolving the region RRaround the xx-axis. (c) Set up, but DO NOT SOLVE, an integral to find the volume of the solid resulting from revolving the region RRaround the line x=−5x=−5.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT