Loading…
Loading…
SQL
A complete SQL course for students and working developers: queries, joins, aggregation, subqueries, window functions, data changes, types and functions, reporting, design, DDL, indexes, security, transactions, procedural SQL, performance and graded exercises. 72 articles with practice quizzes.
Everything about NULL that causes real bugs: what it means, why = NULL never matches, three-valued logic with AND, OR and NOT, IS NULL, IS DISTINCT FROM, COALESCE and NULLIF, and how NULL behaves in arithmetic, constraints, aggregates, grouping, sorting and unique keys.
kvi5hnuCode Sprout team member13 minThree operators that make WHERE clauses shorter and clearer: IN and NOT IN for lists (and the NULL trap inside NOT IN), BETWEEN for inclusive ranges and its pitfalls with dates, and LIKE with the % and _ wildcards, case sensitivity, ILIKE and ESCAPE.
kvi5hnuCode Sprout team member9 minHow WHERE decides which rows a query returns: the comparison operators, comparing numbers, text and dates, case sensitivity, AND, OR and NOT, operator precedence and the classic missing-parentheses bug, De Morgan's laws, and why NULL rows quietly disappear.
kvi5hnuCode Sprout team member11 minThe SELECT clause from the ground up: SELECT * versus a column list, calculated columns, arithmetic and operator precedence, integer division, division by zero, string concatenation with || and CONCAT, functions, column aliases, and SELECT without FROM.
kvi5hnuCode Sprout team member11 minYou write SELECT first, but the database evaluates it fifth. The logical processing order (FROM, WHERE, GROUP BY, HAVING, SELECT, DISTINCT, ORDER BY, LIMIT) explains why aliases fail in WHERE, why aggregates need HAVING, and many other everyday errors.
kvi5hnuCode Sprout team member10 minThe tools people use to write and run SQL (SQL Developer, SSMS, psql, pgAdmin, DBeaver, VS Code), how to get a free database running in minutes, how applications send SQL safely with parameters, and how to read the output of this course's runnable PostgreSQL examples.
kvi5hnuCode Sprout team member12 minWhat SQL is, where it came from and how it's organized: the five families of statements, the ISO standard from SQL-86 to SQL:2023, how Oracle, SQL Server, PostgreSQL, MySQL and SQLite differ, the rules for quotes, case and comments, and a readable coding style.
kvi5hnuCode Sprout team member12 minWhat a relational database is and why almost every application uses one: tables, rows and columns, primary and foreign keys, the three kinds of relationship, NULL, and where the database server sits in a real system. With a runnable example of the database enforcing the rules.
kvi5hnuCode Sprout team member14 minA complete SQL course for students and working developers: queries, joins, aggregation, subqueries, window functions, data changes, types and functions, reporting, design, DDL, indexes, security, transactions, procedural SQL, performance and graded exercises.
kvi5hnuCode Sprout team member8 min