Students are given an overview of what this course is about and how it will be conducted.
Slides: Intro
Video: Database & Database Users (Part 1) (32 mins)
Slides: Intro (continued)
Video: Database & Database Users (Part 2) (26 mins)
Slides: Concepts and and Architecture
Videos:
Slides: ERD
Video: Data Modeling Using the Entity-Relationship Model (Part 1) (32 mins)
Slides: ERD (continued)
Video: Data Modeling Using the Entity-Relationship Model (Part 2) (49 mins)
Notes:
Review Videos:
Brief Review: ER Diagram Concepts (13 mins)
Detailed Review: ER Diagram Concepts (42 mins)
Students are required to watch either the brief review or the detailed version based on their understanding of the previous lectures.
Slides: ERD (continued)
Video: Data Modeling Using the Entity-Relationship Model (Part 3) (14 mins)
A music database stores details of a personal music library, and could be used to manage your MP3, CD, or vinyl collection. Draw an ER diagram from the list of requirements for this database given below.
The collection consists of albums
An album is made by exactly one artist
An artist makes one or more albums
An album contains one or more tracks
Artists, albums, and tracks each have a name and a unique identifier
Each track is on exactly one album
Each track has a time length, measured in seconds
For more practice questions, check the exercise section of the chapter titled "Data Modeling Using the Entity–Relationship (ER) Model" from the book.
Do NOT watch before attempting the question yourself: Converting Requirements into an ER Diagram (8 mins)
Note that a number of assumptions have been made while drawing the ER diagram. These assumptions should be explicitly stated.
Slides: EERD
Videos: Enhanced Entity-Relationship (EER) Modeling (Part 1) (29 mins)
Syllabus: Slides 2 & 3
Slides: EERD (continued)
Video: Enhanced Entity-Relationship (EER) Modeling (Part 2) (26 mins)
An organization depends on a number of different types of persons for its successful operation. The organization is interested in the following for all of these persons: SSN, Name, Address, and Telephone. A person may have multiple telephone numbers. Three types of persons are of greatest interest: employees, volunteers, and donors. Employees only have a date hired attribute, and volunteers only have a skill attribute. Donors only have a relationship (named Donates) with an item that has a number and name. A donor must have donated one or more items, and an item may have no donors, or one or many donors.
There are persons other than employees, volunteers, and donors who are of interest to the organization, so that a person need not belong to any of these three groups. On the other hand, at a given time a person may belong to two or more of these groups (for example, employees and donors).
Draw an EER diagram based on the requirements above. Write down the assumptions (if any) you make in your answer.
Do NOT watch before attempting the question yourself: Converting Requirements into an EER Diagram (15 mins)
Syllabus: Slides 1, 2, 3 & 4
Slides: Constraints
Video: The Relational Data Model and Relational Database Constraints (Part 1) (31 mins)
Students are asked to explain the logical reasoning behind their midterm answers. Participation in this class is mandatory for everyone who took the midterm exam.
Slides: Constraints (continued)
Video: The Relational Data Model and Relational Database Constraints (Part 2) (60 mins)
Slides: Mapping
Videos:
Slides: Mapping (continued)
Video: Mapping EER Diagram to Schema - Step 8 (41 mins)
Slides: Mapping (continued)
Video: Mapping of Union Types/Categories - Step 9 (11 mins)
Map the ER diagram given here to a schema.
Do not watch without the attempting the problem first: Mapping an ER Diagram to a Schema (12 mins)
Map the EER diagrams given here to schemas using all possible options.
Do not watch without the attempting the problem first: Mapping EER Diagrams to Schemas (18 mins)
Slides: Normalization
Video: Informal Guidelines & Functional Dependencies (42 mins)
Slides: Normalization (continued)
Video: 1NF, 2NF, 3NF (36 mins)
Consider the following relation for published books:
BOOK (Book_title, Author_name, Book_type, List_price, Author_affil, Publisher)
Book_title and Author_name make up the primary key. Author_affil refers to the affiliation of author. Suppose the following dependencies exist:
Book_title → Publisher, Book_type
Book_type → List_price
Author_name → Author_affil
What normal form is the relation in? Explain your answer.
Apply normalization until you cannot decompose the relations further. State the reasons behind each decomposition.
Do not watch without the attempting the problem first: Normalizing Unsatisfactory Relations (17 mins)
Slides: SQL
Videos:
Schema Definitions (18 mins)
MySQL Data Types (17 mins)
Inner Join, Left Join, Right Join, Full Outer Join (17 mins)
Slides: SQL (continued)
Video: Simple SQL Queries (43 mins)
Syllabus: Slides 5 & 6
Slides: SQL (continued)
Video: Nested Queries (38 mins)
Question: Assignment on SQL
Slides: SQL (continued)
Videos:
Syllabus: Everything covered after the midterm