Class Schedule - Fall 2023
==============================

Week 15 - Thursday (12/7)
---------------------------

- Before lecture:

   - Read: Database Tuning
     
     - `Course Notes: Database Tuning <course_notes/dbs_tuning.html>`_      

Week 15 - Monday (12/4)
---------------------------

- Before lecture:

   - Read: Chapter 17 (Durability)
     
     - `Course Notes: Durability <course_notes/transactions_durability.html>`_      
  
   - Watch (Vimeo Links):
     
     -  `Lecture 24 3: Durability introduction <https://vimeo.com/485733896>`_

     -  `Lecture 25 1: Durability: Logging <https://vimeo.com/487677843>`_

     -  `Lecture 25 2: Durability: Force/Steal <https://vimeo.com/487677887>`_
     -  `Lecture 25 3: Durability: Recovery: Aries Algorithm <https://vimeo.com/487677967>`_

- Solve Lecture Exercise for Lecture 25

	

Week 14 - Thursday (11/30)
---------------------------

- Before lecture:

   - Read: Chapter 18 (Concurrency Control, 18.1-18.6)
   - `Course Notes: Concurrency Control <course_notes/transactions_concurrency.html>`_
  
   - Watch (Vimeo Links):

     -  `Lecture 23 1: Concurrency Control Introduction <https://vimeo.com/484937168>`_
     -  `Lecture 23 2:  Checking Serialiazibility <https://vimeo.com/484937242>`_
     -  `Lecture 24 1: Two Phase Locking <https://vimeo.com/484937273>`_
	
     -  `Lecture 24 2: Lock Management <https://vimeo.com/485733797>`_

- Solve Lecture Exercise for Lecture 24

  
Week 14 - Monday (11/27)
---------------------------

- Before lecture:

   - Read: Chapter 16 (Query Compiler)
     
   - `Course Notes: Query Optimization <course_notes/query_optimization.html>`_ 
  
   - Watch (Vimeo Links):

     -  `Lecture 22 3: Query Optimization Introduction  <https://vimeo.com/482157187>`_

     -  `Lecture 22 4: Query Plan Generation  <https://vimeo.com/482188476>`_
     
     -  `Lecture 22 5: Size Estimation  <https://vimeo.com/482188505>`_

- Solve Lecture Exercise for Lecture 23


Week 13 - Monday (11/20)
---------------------------

- Before lecture:

   - Read: Chapter 15 (Query Execution) and Chapter 16 (Query Compiler)
     
   - `Course Notes: Query Processing <course_notes/query_processing.html>`_   
   - Watch (Vimeo Links):
     
     -  `Lecture 21 3: Block Nested Loop Join  <https://vimeo.com/481023352>`_     
     -  `Lecture 22 1: External Sort   <https://vimeo.com/482157060>`_

     -  `Lecture 22 2: Pipelining  <https://vimeo.com/482157108>`_

	
- Solve Lecture Exercise for Lecture 22


Week 12 - Thursday (11/16)
---------------------------

- Before lecture:

   - Read: Chapter 15 (Query Execution)
   - `Course Notes: Query Processing <course_notes/query_processing.html>`_   
   - Watch (Vimeo Links):

     -  `Lecture 21 1: Query Execution  <https://vimeo.com/481023321>`_

     -  `Lecture 21 2: Index Scans <https://vimeo.com/481023203>`_

- Solve Lecture Exercise for Lecture 21


Week 12 - Monday (11/13)
---------------------------

- Before lecture:

   - Read: Chapter 14 (Index Structures)
   - `Course Notes: Secondary Storage <course_notes/secondary_storage.html>`_   
   - Watch (Vimeo Links):

     - `Lecture 19 3: B-trees: insertion/deletion  <https://vimeo.com/478303444>`_

     - `Lecture 20 1: B-trees: duplicate values and multiple attributes  <https://vimeo.com/479650781>`_

     - `Lecture 20 2: Other types of indices  <https://vimeo.com/479651370>`_

- Solve Lecture Exercise for Lecture 20


Week 12- Thursday (11/9)
------------------------------

- Before lecture:

   - Read: Chapter 14 (Index Structures)
   - `Course Notes: Secondary Storage <course_notes/secondary_storage.html>`_   
   - Watch (Vimeo Links):

     - `Lecture 19 1: Indexing  <https://vimeo.com/478303296>`_
     - `Lecture 19 2: B-trees  <https://vimeo.com/478303360>`_


Week 11 - Monday (11/6)
---------------------------

- Before lecture:

   - Read: Chapter 13 (Secondary Storage Management)
   - `Course Notes: Object Relational Extensions <course_notes/sql_objectrelational.html>`_   
   - `Course Notes: Secondary Storage <course_notes/secondary_storage.html>`_   

   - Watch (Vimeo Links):

     - `Lecture 16_2: Other SQL Features (case, recursion, advanced group by)  <https://vimeo.com/473213914>`_
     - `Lecture 19 1: Indexing  <https://vimeo.com/478303296>`_



Week 9 - Thursday (10/26)
---------------------------

- Before lecture:

   - Read: Views and Indexes (Chapter 8.1-8.2)
   - `Course Notes: Views, Triggers and Access Control <course_notes/sql_otherfeatures.html>`_   

   - Watch (Vimeo Links):

     - `Lecture 16_1: Views and Access Control <https://vimeo.com/473213387>`_


- Solve Lecture Exercise for Lecture 16


Week 9 - Monday (10/23)
---------------------------

- Before lecture:

   - Read: Constraints and Trigger (Chapter 7)
   - `Course Notes: Procedural SQL <course_notes/sql_procedural.html>`_   
   - `Course Notes: Frameworks <course_notes/or_frameworks.html>`_   
   - `Course Notes: Views, Triggers and Access Control <course_notes/sql_otherfeatures.html>`_   

   - Watch (Vimeo Links):

      - `Lecture 15:1: PL/pgSQL <https://vimeo.com/471969771>`_
	
      - `Lecture 15:2: SQL Triggers <https://vimeo.com/471969909>`_


- No Lecture Exercise for this class!


Week 8 - Thursday (10/20)
---------------------------

- Before lecture:

   - Read: SQL Language (Chapter 6), Constraints and Trigger (Chapter 7)
   - `Course Notes: Data Definition and Manipulation in SQL <course_notes/sql_dmlddl.html>`_   
   - `Course Notes: Procedural SQL <course_notes/sql_procedural.html>`_   

   - Watch (Vimeo Links):

     - `Lecture 14:1: SQL Constraints <https://vimeo.com/470771139>`_

     - `Lecture 14:2: SQL Isolation <https://vimeo.com/470771344>`_

     - `Lecture 14:3: SQL Introduction to Procedural SQL <https://vimeo.com/470778271>`_

- Solve Lecture Exercise for Lecture 14 (deadline 48 hours)


Week 8 - Monday (10/16)
-------------------------

- Before lecture:

   - Read: SQL Language (Chapter 6)
   - `Course Notes: Advanced SQL <course_notes/sql_advanced.html>`_   
   - `Course Notes: Data Definition and Manipulation in SQL <course_notes/sql_dmlddl.html>`_   

   - Watch (Vimeo Links, optional):
      
     - `Lecture 12:3: SQL Set Comparisons <https://vimeo.com/468304031>`_
     

     - `Lecture 13:1: SQL Correlated Set Comparisons <https://vimeo.com/469606479>`_

     - `Lecture 13:2: Transactions and SQL Insert <https://vimeo.com/469606612>`_

     - `Lecture 13:3: SQL Update/Delete <https://vimeo.com/469610731>`_

       
- Solve Lecture Exercise for Lecture 13 (deadline 48 hours)



Week 6 - Thursday (10/12)
-------------------------

- Before lecture:

   - Read: SQL Language (Chapter 6)
   - `Course Notes: Advanced SQL <course_notes/sql_advanced.html>`_   

   - Watch (Vimeo Links):
     
     - `Lecture 12:1: SQL Outer Join <https://vimeo.com/468304645>`_

     - `Lecture 12:2: SQL Anonymous and Scalar Queries <https://vimeo.com/468304284>`_ 
      

 - Solve Lecture 12 Exercise  on Submitty after class (deadline in 48 hrs).
   

Week 5 - Thursday (10/5)
-------------------------

- Before lecture:

   - Read: SQL Language (Chapter 6)
   - `Course Notes: SQL Basics <course_notes/sql_basics.html>`_   

- Watch the Vimeo videos (optional):

     - `Lecture 10:4: SQL: FROM <https://vimeo.com/465979315>`_

     - `Lecture 11:1: Set/bag operators, order by, limit <https://vimeo.com/466009052>`_

     - `Lecture 11:2: Group by/Having <https://vimeo.com/466009110>`_

- Solve Lecture 11 Exercise on Submitty (deadline in 48 hrs after class)


Week 5 - Monday (10/2)
-------------------------

- Before lecture:

   - Read: SQL Language (Chapter 6)
   - `Course Notes: SQL Basics <course_notes/sql_basics.html>`_   

   - Watch Vimeo videos below (optional)

     - `Lecture 10:2+10.3: SQL: Intro, SELECT, WHERE <https://vimeo.com/465979129>`_

     - `Lecture 10:4: SQL: FROM <https://vimeo.com/465979315>`_



Week 4 - Thursday (9/21)
--------------------------

- Before lecture:

   - Read: Entity-Relationaship Diagrams (Chapter 4)
   - `Course Notes: ER Diagram <course_notes/er.html>`_   
   - Watch (Vimeo Links):
     
     - `Lecture 7:2: ER Diagrams (Cardinalities Reexamined) <https://vimeo.com/459754951>`_

     - `Lecture 8:1:  ER Diagrams (Entities Reexamined, Weak Entities) <https://vimeo.com/459979649>`_

     - `Lecture 8:2: ER Diagrams (Entity Hierarchies) <https://vimeo.com/459979698>`_

- Solve Lecture 8 Exercise  on Submitty after class (deadline in 48 hrs).


Week 4 - Monday (9/18)
-----------------------

- Before lecture:

   - Read: Entity-Relationship Diagrams (Chapter 4.1-4.5)
   - `Course Notes: ER Diagram <course_notes/er.html>`_   
   - Watch (Vimeo Links):
     - `Lecture 6:1: Normalization (Fourth Normal Form) <https://vimeo.com/458752406>`_
     
     - `Lecture 6:2: Entity Relationship Diagrams (Entities) <https://vimeo.com/458752542>`_

     - `Lecture 6:3: Entity Relationship Diagrams (Relationships and Participation Constraints) <https://vimeo.com/458760435>`_

     - `Lecture 7:1: Converting ER Diagrams to Relational Data Model <https://vimeo.com/459754834>`_

- Solve Lecture 7 Exercise  on Submitty after class (deadline in 48 hrs).

  
Week 3 - Thursday (9/14)
------------------------
- Before lecture:

   - Read: Normalization (Chapter 3)
   - `Course Notes: Normalization <course_notes/normalization.html>`_   
   - Watch (Vimeo Links):
     - `Lecture 4:2: Minimal Basis <https://vimeo.com/455561999>`_
     
     - `Lecture 5:1: Normalization (Introduction to Decompositions: Lossless Decocompositions) <https://vimeo.com/457543933>`_
     - `Lecture 5:3: Normalization (3NF Decomposition) <https://vimeo.com/457544268>`_
       Errata: in the example in this video, one of the keys is missing for R,
       BCD should also be a key!
     - `Lecture 5:2: Normalization (Dependency Preserving Decompositions) <https://vimeo.com/457544136>`_
     
     - `Lecture 5:4: Normalization (BCNF Decomposition) <https://vimeo.com/457547883>`_
     - `Lecture 5:Bonus: Normalization (BCNF Decomposition, Second example) <https://vimeo.com/457555832>`_
- Join lecture at 2PM.

- Solve Lecture 6 Exercise  on Submitty after class (deadline in 48 hrs).


Week 3 - Monday (9/11)
------------------------

- Before lecture:

   - Read: Normalization (Chapter 3)
   - `Course Notes: Normalization <course_notes/normalization.html>`_   
   - Watch (Vimeo Links):
     
     - `Lecture 4:1: Normal Forms <https://vimeo.com/455555941>`_
       
- Solve Lecture 5 Exercise  on Submitty after class (deadline in 48 hrs).


Week 2 - Thursday (9/7)
------------------------

- Before lecture:

   - Read: Normalization (Chapter 3)
   - `Course Notes: Normalization <course_notes/normalization.html>`_   
   - Watch (Vimeo Links optional):
     
     - `Lecture 3.2: Normalization (Functional dependencies, inference, keys), infomercial style! <https://vimeo.com/455312447>`_  


- Solve Lecture 4 Exercise  on Submitty after class (deadline in 48 hrs).


Week 2 - Tuesday (9/5)
------------------------

- Reading: Introduction to Relational Algebra and Normalization (Chapter 2)

  - Before lecture:

   - Read: Rest of Chapter 2
   - `Course Notes: Relational Algebra <course_notes/relational_algebra.html>`_

  - Watch (Vimeo Links - optional):

     - `Lecture 2.3 Cartesian Product <https://vimeo.com/454166680>`_  
    
     - `Lecture 3.1: Relational Algebra (Join) <https://vimeo.com/455312258>`_

       (Errata: Note a mistake at 10 minute mark: hid=hid1 should be
       hid<>hid1, like in the first solution to the same query.

       This is why, due to inequality, we cannot use natural join for this
       query easily.)
       
     - `Relational Algebra tl;dr (5 mins Summary) <https://vimeo.com/455312404>`_  

- Solve Lecture 3 Exercise  on Submitty after class (deadline in 46 hrs).


    
Week 1 - Thursday (8/31)
-----------------------

- Reading: Introduction to Relational Algebra (Chapter 2)

  - Before lecture:

   - Read: Rest of Chapter 2  from textbook
     
   - `Course Notes: Relational Algebra <course_notes/relational_algebra.html>`_   
   - Watch (Vimeo Links - optional):

     - `Lecture 2.1 Introduction to Relational Algebra <https://vimeo.com/453868965>`_

     - `Lecture 2.2 Rename, Select, Project <https://vimeo.com/454166156>`_
       

- Join lecture in class at 2pm

- Solve Lecture 2 Exercise on Submitty after class (deadline in 48 hrs).


Week 1 - Monday (8/28)
-----------------------

- Introduction to Databases and Relational Data Model 

- Before lecture:

   - Read: Chapter 1, 2.1-2.2
   - `Course Notes: Introduction <course_notes/intro.html>`_
     
   - (Optional) Watch videos:

    - `Lecture 1: Introduction to Databases <https://vimeo.com/452721555>`_
    - `Lecture 1.2: Introduction to Relational Data Model <https://vimeo.com/452915953>`_

- Attend lecture at 2PM
    
