--- url: "https://use-the-index-luke.com/3-minute-quiz" titulek: "3-Minute Quiz: What do you know about SQL performance?" h1: "The 3-Minute SQL Indexing Quiz That 60% Fail" popis: "Just 5 questions to see how much you know about SQL performance. Never make these mistakes again." jazyk: "en" kanonicka: "https://use-the-index-luke.com/3-minute-quiz" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:13:35" znaku: 2063 slov: 298 kodovani: "utf-8" sha256: "611c055729995bed7584175b31df205a53d9847c02dcc6e8e0cd3b99f981f0a1" --- by [Markus Winand](//winand.at/home). Can you spot the five most common SQL indexing mistakes? # The 3-Minute SQL Indexing Quiz That 60% Fail --- ``` “SQL-Tuning is black magic like alchemy: it consists of obscure rules, understood only by a handful of insiders.” ``` That is a myth. SQL engines use well-known algorithms to deliver predictable performance. It is, however, easy to write SQL queries that cannot use the most efficient algorithm and thus deliver unexpected performance. The following questions provide examples that might make you believe that SQL tuning is black magic. The explanations at the end are just a few sentences long and reveal that the black magic is pure science. Choose a system [Db2 (LUW)](/3-minute-quiz/db2-luw)[MySQL](/3-minute-quiz/mysql)[Oracle](/3-minute-quiz/oracle)[PostgreSQL](/3-minute-quiz/postgresql)[SQL Server](/3-minute-quiz/sql-server)[SQLite](/3-minute-quiz/sqlite) ## 60% Fail? I checked 28,000 results: only 40% answered more than three of the five questions correctly. “*You consider three correct answers to five questions as failed?*” Yes, because most questions have only two options. That gives you a 12.5% chance to pass the quiz by guessing. Accepting three correct answers would give you a chance of 29% to pass by guessing. That would be unreasonable, I think. More about the results in [this blog post](/blog/2014-02/results-three-minutes-sql-performance-quiz). But remember to take the quiz first. *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).