+ All Categories
Home > Documents > Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... ·...

Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... ·...

Date post: 29-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
19
Conceptual Data Modeling CS 327E Jan 29, 2018
Transcript
Page 1: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Conceptual Data Modeling

CS 327EJan 29, 2018

Page 2: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Announcements:• Google Cloud coupons• Multiple iClickers

Page 3: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

1) What is an Entity?

a) An object, a thingb) An attribute of an objectc) An operation on an objectd) A relationship between objects

Page 4: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

2) The ER model describes data as:

a) Entitiesb) Relationshipsc) Attributesd) All of the above

Page 5: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

3) A NULL value is:

a) An unknown attribute value b) An unknown entityc) An unknown relationship between two distinct

entities d) None of the above

Page 6: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

4) There are several notations for ER diagrams.

a) Trueb) False

Page 7: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

5) A referential integrity constraint is defined by:

a) A foreign key (FK) on the parent table (aka the referenced relation)

b) A foreign key (FK) on the child table (aka the referencing relation)

c) A primary key (PK) on the child table(aka the referencing relation)

d) A primary key (PK) on the parent table(aka the referenced relation)

Page 8: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

One-to-Many (1:m)

Page 9: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

One-to-Many (1:m)

Page 10: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

One-to-One (1:1)

Page 11: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

One-to-One (1:1)

Page 12: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Many-to-Many (m:n)

Page 13: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Many-to-Many (m:n)

Page 14: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Many-to-Many (m:n)

Page 15: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Many-to-Many (m:n)

Page 16: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Demo

Page 17: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Practice Problem

Design an ER model for SXSW based on the following requirements:

• An artist belongs to one and only one band.

• A band has multiple artists.• A band has at least one performance during SXSW.• A performance has a date, time, band, and venue.• A venue has an address and capacity.

Page 18: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Practice Problem

Design an ER model for SXSW based on the following requirements:

• An artist belongs to one and only one band.• A band has multiple artists.• A band has at least one performance during SXSW.• A performance has a date, time, band, and venue.• A venue has an address and capacity.

How many 1:m relationships does this model have?

A) 0 B) 1 C) 2 D) 3 E) >3

Page 19: Conceptual Data Modeling - University of Texas at Austinscohen/cs327e_spr18/slides/01... · 2018-01-30 · Demo. Practice Problem Design an ER model for SXSW based on the following

Demo


Recommended