ist 318 – db administration
DESCRIPTION
IST 318 – DB Administration. Intro to Relational Model, Normalization, and SQL. RDB Terminologies. RDBMS. RDBMS Functions. System Dev. Life Cycle (SDLC). SDLC Illustration. E and R. DB design should focus on organization (Management of Data), not limited to the Data (or numbers) - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/1.jpg)
IST 318 – DB Administration
Intro to Relational Model,Normalization, and SQL
![Page 2: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/2.jpg)
RDB Terminologies
![Page 3: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/3.jpg)
RDBMS
![Page 4: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/4.jpg)
RDBMS Functions
![Page 5: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/5.jpg)
System Dev. Life Cycle (SDLC)
![Page 6: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/6.jpg)
SDLC Illustration
![Page 7: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/7.jpg)
E and R
• DB design should focus on organization (Management of Data), not limited to the Data (or numbers)– What kinds of data are needed? entities• Real world people, objects, processes, concepts• Turn into tables
– How are these kinds of data are related? relationships
– Turn into constraints (and sometimes tables)
![Page 8: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/8.jpg)
Cardinality o One important type of relationship Binary relationshipo The most commonly considered constraint on a binary
relationships is cardinality, or number of instances that may appear through this relationshipo One to oneo One to manyo Many to many
![Page 9: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/9.jpg)
ER DiagramNotice the notations for- Entities- Relationships- Cardinality constraints
![Page 10: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/10.jpg)
Normalization – Why it’s needed?
• Notice the redundancy in the dataset (modeled with a single entity/table)?
• Problems (or anomalies) that can be induced– Insertion, deletion, and update anomalies
• Normalization (or splitting into multiple tables) is the solution
![Page 11: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/11.jpg)
Normalization – How to Do It?
• Split a “wide” table into a number of “narrow” ones that are in the third normal form (3NF)
• 1NF: data in every field is atomic, and the record has a (primary) key
• 2NF: all fields depend on the whole key• 3NF: every field depends on the key directly,
not through another (set of) field(s)
![Page 12: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/12.jpg)
Sample Tables in 2/3NFs
![Page 13: IST 318 – DB Administration](https://reader035.vdocuments.net/reader035/viewer/2022062520/56815ab3550346895dc8668d/html5/thumbnails/13.jpg)
ERD for The Sample Bookstore DB