Home›Library›Development

Curated Library

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
Lessons byCS50 on YouTube

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.

8 lessons11h 8m total
One block per lesson, sized by its length

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

About the Instructor

CS50

YouTube creator

8 lessons here 11h 8m

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 YouTube

More in the Library: Development