Your first database
Introduction to relational databases
()
Tables: At the core of every database
()
ADD a COLUMN with ALTER TABLE
Update your database as the structure changes
()
Delete tables with DROP TABLE
Enforce data consistency with attribute constraints
Better data quality with constraints
()
Conforming with data types
Type CASTs
Working with data types
()
Convert types USING a function
The not-null and unique constraints
()
What happens if you try to enter NULLs?
Uniquely identify records with key constraints
Keys and superkeys
()
Identify keys with SELECT COUNT DISTINCT
Primary keys
()
Surrogate keys
()
Test your knowledge before advancing
Glue together tables with foreign keys
Model 1:N relationships with foreign keys
()
Explore foreign key constraints
JOIN tables linked by a foreign key
Model more complex relationships
()
Drop "firstname" and "lastname"
Referential integrity
()
Referential integrity violations
Roundup
()
Count affiliations per university