# Well Structured Queries > Well Structured Queries (https://wellstructuredqueries.com/) is an interactive visual SQL and PostgreSQL course featuring 57 lessons and 278 animated steps across 9 chapters in 21 languages. The first chapter is free and Pro unlocks the remaining chapters. Every step displays the relational database tables, the SQL query result set, and the live application UI side by side. ## Core Resources - [Well Structured Queries Interactive Course (English)](https://wellstructuredqueries.com/): Complete 57-lesson visual SQL & PostgreSQL curriculum. - [XML Sitemap](https://wellstructuredqueries.com/sitemap.xml): Multilingual sitemap with reciprocal hreflang annotations across all 21 editions. - [Support & Inquiries](mailto:support@wellstructuredqueries.com): Direct contact via support@wellstructuredqueries.com. ## Complete 9-Chapter SQL Curriculum (57 Lessons) ### 01. SQL Fundamentals - [SQL in a Web Application](https://wellstructuredqueries.com/#how-apps-query-db/a-page-with-nothing-to-show) - [Tables, rows & columns](https://wellstructuredqueries.com/#tables-rows-columns/a-table-holds-one-kind-of-thing) - [SELECT](https://wellstructuredqueries.com/#select-columns/select-sends-everything) - [Filtering with WHERE](https://wellstructuredqueries.com/#filter-where/every-row-comes-back) - [ORDER BY & LIMIT](https://wellstructuredqueries.com/#sort-and-limit/rows-have-no-promised-order) - [DISTINCT](https://wellstructuredqueries.com/#unique-distinct/duplicates-on-the-page) - [NULL](https://wellstructuredqueries.com/#working-with-null/null-means-no-value) - [CASE](https://wellstructuredqueries.com/#conditional-case/a-label-the-table-doesnt-have) ### 02. Joins & Relationships - [Keys & relationships](https://wellstructuredqueries.com/#keys-and-relations/customer-3-isnt-a-name) - [INNER JOIN](https://wellstructuredqueries.com/#join-inner/two-tables-one-page) - [LEFT JOIN](https://wellstructuredqueries.com/#join-left/someone-is-missing) - [RIGHT & FULL OUTER JOIN](https://wellstructuredqueries.com/#join-right-full/right-join-keeps-every-order) - [CROSS JOIN](https://wellstructuredqueries.com/#join-cross/two-short-lists) - [Self join](https://wellstructuredqueries.com/#join-self/a-key-into-the-same-table) - [Filtering After LEFT JOIN](https://wellstructuredqueries.com/#left-join-filter-trap/every-customer-as-before) - [EXISTS & NOT EXISTS](https://wellstructuredqueries.com/#check-exists/the-join-way-repeats-people) ### 03. Grouping & Aggregation - [COUNT, SUM, AVG, MIN, MAX](https://wellstructuredqueries.com/#aggregate-functions/many-rows-one-number) - [Dates, Timestamps & Time Zones](https://wellstructuredqueries.com/#dates-and-time/every-order-is-its-own-moment) - [GROUP BY](https://wellstructuredqueries.com/#grouping-rows/one-total-for-the-whole-shop) - [Join Fanout & Double Counting](https://wellstructuredqueries.com/#join-row-explosion/what-each-customer-ordered) - [WHERE vs HAVING](https://wellstructuredqueries.com/#where-vs-having/revenue-per-customer) - [COUNT(*) vs COUNT(column)](https://wellstructuredqueries.com/#count-star-vs-col/count-counts-rows) - [Pivoting](https://wellstructuredqueries.com/#pivot-tables/one-row-per-product-per-month) - [Logical Query Processing Order](https://wellstructuredqueries.com/#sql-execution-order/written-top-to-bottom-run-in-another-order) ### 04. Query Composition - [Subqueries](https://wellstructuredqueries.com/#nested-subqueries/one-number-first) - [Correlated subqueries](https://wellstructuredqueries.com/#correlated-subqueries/a-subquery-that-looks-outside) - [CTEs](https://wellstructuredqueries.com/#common-table-expr/give-the-first-step-a-name) - [Recursive CTEs](https://wellstructuredqueries.com/#recursive-queries/start-with-the-ceo) - [Views](https://wellstructuredqueries.com/#database-views/a-filter-every-page-repeats) - [UNION & UNION ALL](https://wellstructuredqueries.com/#set-union/one-list-of-recipients) - [INTERSECT & EXCEPT](https://wellstructuredqueries.com/#set-intersect-except/two-lists-of-products) ### 05. Window Functions - [Window Functions vs. GROUP BY](https://wellstructuredqueries.com/#windows-vs-groupby/group-by-folds-the-rows-away) - [PARTITION BY](https://wellstructuredqueries.com/#window-partition/each-band-gets-its-own-numbers) - [ROW_NUMBER, RANK, DENSE_RANK](https://wellstructuredqueries.com/#rank-and-row-number/sorted-but-no-places) - [Top N per group](https://wellstructuredqueries.com/#top-n-per-group/number-the-rows-in-each-band) - [Running totals & moving averages](https://wellstructuredqueries.com/#running-sums-averages/revenue-month-by-month) - [LAG & LEAD](https://wellstructuredqueries.com/#window-lag-lead/reach-back-one-row) ### 06. Writes & Transactions - [INSERT, UPDATE, DELETE](https://wellstructuredqueries.com/#insert-update-delete/the-cart-is-a-table) - [Keys & constraints](https://wellstructuredqueries.com/#table-constraints/the-table-keeps-the-rules) - [Foreign keys & cascades](https://wellstructuredqueries.com/#foreign-key-cascades/orders-are-tied-to-a-customer) - [Upserts](https://wellstructuredqueries.com/#conflict-upsert/add-something-thats-already-there) - [Transactions](https://wellstructuredqueries.com/#acid-transactions/a-transfer-is-two-updates) ### 07. Indexes & Query Plans - [Index Access Basics](https://wellstructuredqueries.com/#index-fundamentals/find-one-customer) - [B-trees](https://wellstructuredqueries.com/#btree-indexes/an-index-is-a-tree) - [Composite indexes](https://wellstructuredqueries.com/#multi-column-index/one-index-two-columns) - [Index Maintenance Cost](https://wellstructuredqueries.com/#index-write-cost/every-index-is-another-copy) - [Query Plans with EXPLAIN](https://wellstructuredqueries.com/#explain-query-plan/a-slow-page) ### 08. SQL in Applications - [SQL injection & parameters](https://wellstructuredqueries.com/#prevent-sql-injection/the-app-glues-text-into-sql) - [N+1 queries](https://wellstructuredqueries.com/#n-plus-one-problem/one-query-for-the-list) - [Offset & Keyset Pagination](https://wellstructuredqueries.com/#keyset-pagination/page-1-the-newest-four) - [Concurrent Updates & Row Locks](https://wellstructuredqueries.com/#concurrent-users/two-shoppers-one-lamp-left) - [Compatible Schema Migrations](https://wellstructuredqueries.com/#online-schema-changes/the-live-app-reads-fullname) ### 09. Relational Schema Design - [Normalization](https://wellstructuredqueries.com/#schema-normalization/one-table-for-everything) - [One-to-many & many-to-many](https://wellstructuredqueries.com/#many-to-many-design/one-to-many-a-key-on-the-many-side) - [Choosing keys](https://wellstructuredqueries.com/#primary-key-choice/customers-keyed-by-email) - [Data types](https://wellstructuredqueries.com/#column-data-types/dates-stored-as-text-sort-as-text) - [Denormalization Trade-offs](https://wellstructuredqueries.com/#when-to-denormalize/a-report-built-from-joins) ## Localized Editions (21 Languages) - [English (en)](https://wellstructuredqueries.com/): Well Structured Queries | Interactive Visual SQL Course - [Español (es)](https://wellstructuredqueries.com/es/): Well Structured Queries | Curso Interactivo y Visual de SQL y PostgreSQL - [Português (pt)](https://wellstructuredqueries.com/pt/): Well Structured Queries | Curso Interativo e Visual de SQL e PostgreSQL - [Français (fr)](https://wellstructuredqueries.com/fr/): Well Structured Queries | Cours SQL et PostgreSQL Interactif et Visuel - [Italiano (it)](https://wellstructuredqueries.com/it/): Well Structured Queries | Corso SQL e PostgreSQL Interattivo e Visivo - [Deutsch (de)](https://wellstructuredqueries.com/de/): Well Structured Queries | Interaktiver Visueller SQL- & PostgreSQL-Kurs - [Nederlands (nl)](https://wellstructuredqueries.com/nl/): Well Structured Queries | Interactieve Visuele SQL & PostgreSQL Cursus - [Polski (pl)](https://wellstructuredqueries.com/pl/): Well Structured Queries | Interaktywny Wizualny Kurs SQL i PostgreSQL - [Türkçe (tr)](https://wellstructuredqueries.com/tr/): Well Structured Queries | Etkileşimli ve Görsel SQL & PostgreSQL Kursu - [Bahasa Indonesia (id)](https://wellstructuredqueries.com/id/): Well Structured Queries | Kursus SQL & PostgreSQL Visual Interaktif - [Tiếng Việt (vi)](https://wellstructuredqueries.com/vi/): Well Structured Queries | Khóa Học SQL & PostgreSQL Trực Quan Tương Tác - [Ελληνικά (el)](https://wellstructuredqueries.com/el/): Well Structured Queries | Διαδραστικό Οπτικό Μάθημα SQL & PostgreSQL - [Українська (uk)](https://wellstructuredqueries.com/uk/): Well Structured Queries | Інтерактивний Візуальний Курс SQL та PostgreSQL - [Русский (ru)](https://wellstructuredqueries.com/ru/): Well Structured Queries | Интерактивный Визуальный Курс SQL и PostgreSQL - [简体中文 (zh-Hans)](https://wellstructuredqueries.com/zh-hans/): Well Structured Queries | 交互式可视化 SQL 与 PostgreSQL 教程 - [繁體中文 (zh-Hant)](https://wellstructuredqueries.com/zh-hant/): Well Structured Queries | 互動式視覺化 SQL 與 PostgreSQL 教學 - [日本語 (ja)](https://wellstructuredqueries.com/ja/): Well Structured Queries | 視覚で学ぶインタラクティブ SQL・PostgreSQL 入門講座 - [한국어 (ko)](https://wellstructuredqueries.com/ko/): Well Structured Queries | 시각적으로 배우는 인터랙티브 SQL & PostgreSQL 강의 - [हिन्दी (hi)](https://wellstructuredqueries.com/hi/): Well Structured Queries | इंटरैक्टिव विज़ुअल SQL और PostgreSQL कोर्स - [العربية (ar)](https://wellstructuredqueries.com/ar/): Well Structured Queries | دورة SQL وPostgreSQL التفاعلية المرئية مجاناً - [עברית (he)](https://wellstructuredqueries.com/he/): Well Structured Queries | קורס SQL ו-PostgreSQL אינטראקטיבי וויזואלי