Wun Code
SQL

SQL Basics

Learn to ask a database questions in its own language: pick columns, filter rows, sort them and group them.

Start the trackFree, no sign-up needed

What you'll learn

  • Your first querySELECT and WHERE
  • Sorting resultsSort with ORDER BY and cap the row count with LIMIT
  • Combining conditionsConditions with AND, OR, IN and BETWEEN
  • Pattern matchingLIKE with % and _
  • Aggregate functionsCOUNT, SUM and AVG
  • Grouping rowsThe GROUP BY clause
  • Filtering groupsHAVING versus WHERE
  • Missing valuesNULL and COALESCE
  • Labeling with conditionsThe CASE WHEN expression
  • Unique valuesDISTINCT and COUNT(DISTINCT)

Track contents

10 lessons, 2 hours in total
  1. 1Your first querySQLSELECT and WHERE
  2. 2Sorting resultsSQLSort with ORDER BY and cap the row count with LIMIT
  3. 3Combining conditionsSQLConditions with AND, OR, IN and BETWEEN
  4. 4Pattern matchingSQLLIKE with % and _
  5. 5Aggregate functionsSQLCOUNT, SUM and AVG
  6. 6Grouping rowsSQLThe GROUP BY clause
  7. 7Filtering groupsSQLHAVING versus WHERE
  8. 8Missing valuesSQLNULL and COALESCE
  9. 9Labeling with conditionsSQLThe CASE WHEN expression
  10. 10Unique valuesSQLDISTINCT and COUNT(DISTINCT)