Given an SQL database with index for (startpage, endpage)
, with a relation Articles(*ID*, title, startpage, endpage)
, why isn't a query
SELECT title
FROM Articles
WHERE endpage = 100;
sped up by the previous index?
Apologies for this peculiar question as it came from a practice paper without explanation.