Basically, I'm trying to find the inverse of this command: substring(term, -3) .
substring(term, -3)
Try the following:
SELECT SubStr(myColumn, 1, LENGTH(myColumn) - 3) FROM MyTable
or
SELECT LEFT(myColumn, LENGTH(myColumn) - 3) FROM MyTable
This should do it: SELECT SUBSTRING(term FROM 1 FOR LENGTH(term)-3)
SELECT SUBSTRING(term FROM 1 FOR LENGTH(term)-3)
If you need to match it by comparison, you can use
WHERE somefield LIKE 'term___'