--- url: "https://use-the-index-luke.com/sql/example-schema" titulek: "Example Schema" h1: "Example Schema" popis: "CREATE & INSERT statements to create the Use The Index, Luke example database" jazyk: "en" kanonicka: "https://use-the-index-luke.com/sql/example-schema" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:14:52" znaku: 3803 slov: 374 kodovani: "utf-8" sha256: "4da10ceb2313a5f8f068cd1a7a6785fe6fe5816d0510fad9253d0f371cbfe2ff" --- by [Markus Winand](//winand.at/home). # Example Schema --- This appendix contains all the required `create` and `insert` statements to run the examples from the book. For the sake of didactics, the book’s main body does not always include all details for the examples. ## Contents 1. *[Db2 (LUW)](/sql/example-schema/db2)* 1. *[The `where` clause](/sql/example-schema/db2/where-clause)* 2. *[Testing and Scalability](/sql/example-schema/db2/performance-testing-scalability)* 3. *[The Join Operation](/sql/example-schema/db2/join)* 4. *[3-Minute Test](/sql/example-schema/db2/3-minute-quiz)* 2. *[MySQL](/sql/example-schema/mysql)* 1. *[The `where` clause](/sql/example-schema/mysql/where-clause)* 2. *[The Join Operation](/sql/example-schema/mysql/join)* 3. *[Clustering Data](/sql/example-schema/mysql/clustering-data)* 4. *[Sorting and Grouping](/sql/example-schema/mysql/sorting-grouping)* 5. *[Partial Results](/sql/example-schema/mysql/partial-results)* 6. *[3-Minute Test](/sql/example-schema/mysql/3-minute-quiz)* 3. *[Oracle](/sql/example-schema/oracle)* 1. *[The `where` clause](/sql/example-schema/oracle/where-clause)* 2. *[Testing and Scalability](/sql/example-schema/oracle/performance-testing-scalability)* 3. *[The Join Operation](/sql/example-schema/oracle/join)* 4. *[Clustering Data](/sql/example-schema/oracle/clustering-data)* 5. *[Sorting and Grouping](/sql/example-schema/oracle/sorting-grouping)* 6. *[Partial Results](/sql/example-schema/oracle/partial-results)* 7. *[Insert, Delete and Update](/sql/example-schema/oracle/dml)* 8. *[3-Minute Test](/sql/example-schema/oracle/3-minute-quiz)* 4. *[PostgreSQL](/sql/example-schema/postgresql)* 1. *[The `where` clause](/sql/example-schema/postgresql/where-clause)* 2. *[Testing and Scalability](/sql/example-schema/postgresql/performance-testing-scalability)* 3. *[The Join Operation](/sql/example-schema/postgresql/join)* 4. *[Sorting and Grouping](/sql/example-schema/postgresql/sorting-grouping)* 5. *[Partial Results](/sql/example-schema/postgresql/partial-results)* 6. *[Insert, Delete and Update](/sql/example-schema/postgresql/dml)* 7. *[3-Minute Test](/sql/example-schema/postgresql/3-minute-quiz)* 5. *[SQL Server](/sql/example-schema/sql-server)* 1. *[The `where` clause](/sql/example-schema/sql-server/where-clause)* 2. *[Testing and Scalability](/sql/example-schema/sql-server/performance-testing-scalability)* 3. *[The Join Operation](/sql/example-schema/sql-server/join)* 4. *[Clustering Data](/sql/example-schema/sql-server/clustering-data)* 5. *[Sorting and Grouping](/sql/example-schema/sql-server/sorting-grouping)* 6. *[Partial Results](/sql/example-schema/sql-server/partial-results)* 7. *[Insert, Delete and Update](/sql/example-schema/sql-server/dml)* 8. *[3-Minute Test](/sql/example-schema/sql-server/3-minute-quiz)* 6. *[SQLite](/sql/example-schema/sqlite)* 1. *[The `where` clause](/sql/example-schema/sqlite/where-clause)* 2. *[The Join Operation](/sql/example-schema/sqlite/join)* 3. *[3-Minute Test](/sql/example-schema/sqlite/3-minute-quiz)* 7. *[Gupta SQLBase](/sql/example-schema/sqlbase)* 1. *[The `where` clause](/sql/example-schema/sqlbase/where-clause)* 2. *[The Join Operation](/sql/example-schema/sqlbase/join)* *You can’t learn everything in one day. Subscribe the newsletter via **[E-Mail](https://winand.at/lists)**, **[Bluesky](https://bsky.app/profile/winand.at)** or **[RSS](/blog/feed)** to gradually catch up. Have a look at [modern-⁠sql.com](https://modern-sql.com) as well.* ## About the Author Markus Winand provides insights into SQL and shows how different systems support it at [modern-sql.com](https://modern-sql.com). Previously he made [use-the-index-luke.com](https://use-the-index-luke.com), which is still actively maintained. Markus can be hired as trainer, speaker and consultant via [winand.at](https://winand.at).