conceptual data modeling - university of texas at austinscohen/cs327e_spr18/slides/01... ·...
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/1.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/3.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/4.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/5.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/6.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/10.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/11.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/13.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/14.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/15.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/16.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/17.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/18.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022060415/5f135e10d567a34057766287/html5/thumbnails/19.jpg)
Demo