-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
EXPLAIN SELECT * FROM words WHERE w LIKE 'A%';
EXPLAIN SELECT * FROM words WHERE w LIKE '%A%';
EXPLAIN SELECT * FROM words WHERE SUBSTRING(w,1,1) = 'A';
EXPLAIN SELECT * FROM words WHERE SUBSTRING(w,2,1) = 'A';
