Which relational database object fits: index vs view vs stored procedure

Verdict: Choose an index to speed up searches on a column, a view to save a reusable SELECT query, or a stored procedure to package parameterised SQL that runs on command.

CriterionIndexViewStored procedure
What it isSorted copy of a column with pointers to the matching rowsVirtual table based on the results of a SELECT querySQL statements that can be run on command, optionally with parameters
Use whenFiltering or searching a large table on that column is slowYou want to save and reuse a query as if it were a tableYou need to package a repeated, parameterised data action

Rules

Traps