ER Diagram Notes

.pdf

School

University of Massachusetts, Amherst *

*We aren’t endorsed by this school

Course

221

Subject

Computer Science

Date

Oct 30, 2023

Type

pdf

Pages

4

Uploaded by hengweizhang

Report
For the "textbook" notation (aka the notation presented in our slides and textbook), our ERD building blocks are (1) rectangles (entity sets), (2) diamonds (relationship sets) and (3) lines with or without directed arrows. The figure below summarizes these objects. "Textbook" Notation instructor - » Rectangles represent entity sets id « Attributes are listed inside the entity rectangle name » Underline indicates primary key attributes salary » Diamonds represent relationship sets « Attributes are the referenced primary key attributes » There may be additional attributes listed outside the diamond « Lines define cardinality constraints < « In the order presented, the lines/arrow on the » left define: many-to-many, one-to-many, > many-to-one, one-to-one Many-to-Many Relationship "Textbook" Notation instructor student id id name name salary tot_cred Engineering Notation instructor advisor student PK |id int —<| PK [i_id int >_|—|— PK |id int name varchar (100) PK [s_id int name varchar (100) salary |numeric(9,2) date timestamp tot_cred [smallint CREATE TABLE instructor ( id int, name varchar(100) NOT NULL, salary numeric(9,2), PRIMARY KEY (id) s CREATE TABLE student ( id int, name varchar(100) NOT NULL, tot_cred smallint, PRIMARY KEY (id) D CREATE TABLE advisor ( i_id int, s_id int, date timestamp, PRIMARY KEY (i_id, s_id), FOREIGN KEY (i_id) REFERENCES instructor (id), FOREIGN KEY (s_id) REFERENCES student (id)
Many-to-One Relationship "Textbook" Notation instructor student id id name name salary tot_cred Engineering Notation instructor advisor student PK |id int —<| PK [i_id int PK |id int name varchar (100) s_id int name varchar(100) salary |numeric(9,2) date timestamp tot_cred [smallint CREATE TABLE 1instructor ( id int, name varchar(100) NOT NULL, salary numeric(9,2), PRIMARY KEY (id) DH CREATE TABLE student ( id int, name varchar(100) NOT NULL, tot_cred smallint, PRIMARY KEY (id) DH CREATE TABLE advisor ( i_id int, s_id int, date timestamp, PRIMARY KEY (i_id), FOREIGN KEY (i_id) REFERENCES instructor (id), FOREIGN KEY (s_id) REFERENCES student (id) D One-to-Many Relationship "Textbook" Notation instructor student id id name name salary tot_cred Engineering Notation instructor advisor student PK |id int i_id int PK |id int name varchar (100) PK |s_id int name varchar (100) salary [numeric(9,2) date timestamp tot_cred [smallint CREATE TABLE instructor ( id int, name varchar(100) NOT NULL, salary numeric(9,2), PRIMARY KEY (id) DN CREATE TABLE student ( id int, name varchar(100) NOT NULL, tot_cred smallint, PRIMARY KEY (id) DN CREATE TABLE advisor ( i_id int, s_id int, date timestamp, PRIMARY KEY (s_id), FOREIGN KEY (i_id) REFERENCES instructor (id), FOREIGN KEY (s_id) REFERENCES student (id) Dls
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: 5.38 A vertical, circular cross-sectional jet of air strikes a coni- cal deflector as indicated in…
Q: It is thought that prehistoric Indians did not take their best tools, pottery, and household items…
Q: Calculate the sales variance in dollars and the sales variance as a percentage given the following…
Q: The graph shows the number of births in some country, in millions, from 1970-2005. Here C(t)…
Q: simplify sin3x + cos2xsinx
Q: Considering how readily they may be altered, permission lists need to be secured and encrypted. What…
Q: Bear Grylls was dropped off in the wilderness and spots a camp 35° west of north. He proceeds to…
Q: Which of these situations was the direct result of the other three? 1. revolutions occured in North…
Q: Hera earned a $175,000 salary in 2021. Her husband, Zeus, earned $100,000 salary in 2021. Hera and…
Q: Provide an appropriate response. Find y' for y = y(x) defined implicitly by 3xy - x2-4-0 O_2x-3y = O…
Q: why is it more advantageous for the cell to have its DNA fused to the cell wall as opposed to…
Q: The Covid-19 pandemic shifted the aggregate supply and aggregate demand curves to the left. Did that…
Q: Define one facies for the sequence of turbidites in Photograph 3 based on the relative abundance…
Q: Research was conducted on the amount of training for 5K race and the time a contestant took to run…
Q: Assume that at the average age of a population of wild turtles is normally distributed with mean age…
Q: hypothalamus thyrotropin-releasing hormone (TRH) inhibition inhibition anterior pituitary…
Q: Member ABCD is a hollow circular steel shaft with a 4 inch outer diameter and a 3 inch inner…
Q: Economic growth is defined as an increase in Group of answer choices investment. real output.…
Q: 10) Assume Young's Modulus for bone is 1.5E10 N/m². The bone breaks if stress greater than 1.5E8 N/…
Q: Steps of the pathway Adenylate cyclase and Tyrosine Kinase System
Q: Tons of different cells make up connective tissues. Those that are considered immature have the…
Q: Make a sign diagram for the derivative of the rational function. 4x + 12 x - 3 f(x) = ---Select---…