Interview questions
Predict the result, find the errors, explain the solution. You can read the questions without an account.
Topic: EXPLAIN and optimizationReset all
22 questions
What appears on the second page with
OFFSETif a new event arrives?Predict the resultJuniorHow many rows will an
ORquery return when rewritten withUNION ALL?Predict the resultMiddleFind the bugs: the second page of a feed without
OFFSETFind the errorsMiddleWhat is the N+1 query problem?
ExplainJuniorWhat does a filter return after row numbering?
Predict the resultJuniorFind the bugs: high-value paid orders from two customers
Find the errorsMiddleFind the bugs: orders containing two product types
Find the errorsMiddleWhich employees match this name pattern?
Predict the resultJuniorWhat does
Sortmean in a query execution plan?ExplainJuniorWhy can
SELECT *slow down a query?ExplainJuniorWhy does the planner get row-count estimates wrong?
ExplainMiddle