I had looked over the string functions section and did not find anything that applied, but the REGULAR EXPRESSIONS stuff was all new to me....and I was able to make it work!
Here is a sample code that seems to do what I want (I apply the REGEXPR in the WHERE section:
SELECT TESTPHASECODES.COLLAPSE_1, SUBSTRING(DATAORF.TESTPHASE, 2) AS STEM, PHASENAME, COUNT(DATAPOINTID) AS SCORECOUNT FROM DATAORF LEFT JOIN TESTPHASECODES ON DATAORF.TESTPHASE = TESTPHASECODES.TESTPHASE
WHERE SCHOOLID LIKE '195' AND LANG LIKE 'ENG' AND GRADE LIKE '3' AND ROOM LIKE '%' AND DATAORF.TESTPHASE LIKE 'H%'
AND SUBSTRING(DATAORF.TESTPHASE, 2, 2) REGEXP '[[:digit:]]+'=1
AND PROBLEV=GRADE AND ORF_MWRC IS NOT NULL
GROUP BY TESTPHASECODES.PHASENAME ORDER BY STEM
I should probably be using HAVING instead of WHERE since this is a GROUP BY query, but this does seem to work.
Thanks for the help!