Go from your first SELECT to joins, window functions and table design, answering real business questions with one realistic company database.
Almost every organization keeps its most important data in a database, and SQL is how you ask it questions. Which products earn the most? Which customers have stopped ordering? How did sales change month over month? This SQL basics course teaches you to answer questions like these yourself, without waiting for someone else to run the report. In 15 narrated video modules (about 3.0 hours), you'll learn SQL for beginners the practical way. Every lesson uses the database of Harbor Lane Coffee, a fictional coffee roaster, and every result on the slides comes from actually running the query, so what you see is exactly what you'll get. Examples run in SQLite and PostgreSQL, with notes for MySQL and SQL Server.
What a relational database is, tables, rows, columns, primary and foreign keys, the five families of SQL statements, the main SQL dialects, and your first query.
Choosing columns, column aliases, calculated columns, the integer division trap, joining text, removing duplicates with DISTINCT, and how the database processes a query.
Comparison operators, AND, OR and NOT with parentheses, IN, BETWEEN, pattern matching with LIKE, and finding missing values with IS NULL.
ORDER BY in ascending and descending order, sorting by several columns, where NULLs land, top-N queries with LIMIT, TOP and FETCH, paging with OFFSET, and tie-breakers.
Text, number and date functions, converting types with CAST, replacing NULLs with COALESCE, and a cheat sheet for SQLite, PostgreSQL, MySQL and SQL Server.
COUNT, SUM, AVG, MIN and MAX, GROUP BY on one or more columns, filtering groups with HAVING, and how NULLs affect totals.
INNER JOIN with ON, table aliases, joining three tables, combining joins with WHERE and GROUP BY, and avoiding join fan-out.
LEFT, RIGHT and FULL OUTER JOIN, finding rows with no match, counting zeros correctly, ON versus WHERE, self joins and CROSS JOIN.
Scalar subqueries, IN and NOT IN, EXISTS, correlated subqueries, derived tables, and when to use a subquery instead of a join.
If-then logic with CASE, pivots with conditional aggregation, common table expressions (WITH), recursive CTEs, and UNION, INTERSECT and EXCEPT.
OVER and PARTITION BY, ROW_NUMBER, RANK and DENSE_RANK, top N per group, running totals, LAG and LEAD, percent of total and moving averages.
Data types, CREATE TABLE, primary and foreign keys, CHECK and UNIQUE constraints, bridge tables, normalization to third normal form, ALTER and DROP.
INSERT, UPDATE and DELETE, working safely with BEGIN, COMMIT and ROLLBACK, soft deletes, and what ACID guarantees.
Saving queries as views, how indexes speed up queries, reading a query plan with EXPLAIN, writing index-friendly conditions, and the most common query bugs.
GRANT and REVOKE with least privilege, preventing SQL injection, protecting sensitive data, professional habits, a capstone business review and the course summary.
Be in the know about what’s happening here.