YouTube01 Oct 2023
1h 41m

CS50 SQL - Lecture 1 - Relating

Podcast cover

CS50

This podcast is a lecture and Q&A session on relational databases and SQL. Speaker 1, Carter Zanke, explains how to work with databases containing multiple tables, focusing on relationships between tables (one-to-one, one-to-many, many-to-many) and how to visualize them using entity-relationship diagrams. The lecture covers keys (primary and foreign) and how they are used to relate tables. It also explains querying multiple tables using subqueries, the "IN" keyword, and joins (inner, left, right, full, and natural), as well as set operations (UNION, INTERSECT, EXCEPT) and grouping data. Throughout the lecture, audience members ask questions, which Speaker 1 answers to clarify concepts and provide practical examples using a database of books and sea lions.

Outlines

Part 1: Database Relationships, ER Diagrams

Part 2: Keys, Data Integrity

Part 3: Subqueries, Nested Queries

Part 4: Joins, Set Operations

Part 5: Aggregation, Grouping

Sign in to continue reading, translating and more.

Open full episode in Podwise