SQL for Beginners: Querying, Database Design and Optimization (SQLite, MySQL, PostgreSQL)
A university-level introduction to relational databases and SQL. It starts with querying and joining tables in SQLite, then covers schema design, writing data, views, indexes and transactions. It ends with MySQL, PostgreSQL, replication and SQL injection. It suits complete beginners who want both query skills and database design fundamentals.
- 8 lessons
- 11h 8m total
- Development
- English
- Earns YodaCoins
Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.
What You'll Learn
- Query tables with SELECT, WHERE, LIKE, ORDER BY, LIMIT, NULL handling and aggregate functions
- Relate tables using primary and foreign keys, joins, subqueries, set operations and GROUP BY
- Design a schema with entity relationship diagrams, normalization, data types and table and column constraints
- Insert, import, update and delete data safely, using foreign key constraints and triggers
- Simplify and secure queries with views, CTEs and partitioning, and speed them up with indexes and query plans
- Explain transactions, race conditions and locks, and recognise SQL injection and how prepared statements prevent it
Prerequisites
- No prior experience needed
- Basic comfort with a computer and a command line is helpful but not required
Course Curriculum
8 lessons · 11h 8m- 01Course Introduction1:46
- 02Querying: SELECT, WHERE, LIKE, ORDER BY and Aggregate Functions1:19:14
- 03Relating: ER Diagrams, Keys, Subqueries, Joins, Sets and Groups1:41:40
- 04Designing: Normalization, CREATE TABLE, Data Types and Constraints1:21:24
- 05Writing: Insert, Import, Delete, Update, Foreign Keys and Triggers1:43:10
- 06Viewing: Views, CTEs, Partitioning and Securing Data1:22:26
- 07Optimizing: Indexes, Query Plans, Transactions and Locks1:28:53
- 08Scaling: MySQL, PostgreSQL, Replication, Sharding and SQL Injection2:09:29
About the Instructor
CS50
YouTube creator
The lessons in this course were produced by CS50 and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and CS50 is not affiliated with YodaHut.
Visit the channel on YouTubeMore in the Library: Development

Python y Django desde cero: sistema de facturación completo

Django desde cero: plantillas, modelos, formularios y panel de administración

Django desde cero: del primer proyecto a vistas basadas en clases y APIs con JWT

Cursor AI Editor for Beginners: Setup, Debugging, Refactoring and Documentation

AI-Assisted Coding with GitHub Copilot in VS Code
