Subject | Re: Select based on a partial match |
---|---|
Author | Dixon Epperson |
Post date | 2004-02-17T13:35:43Z |
> SELECT s.TAXNAME, t.TAXVAL FROM SALESREG s, TAXTBL tRaul,
> WHERE s.TAXNAME LIKE 'CO%'
>
thats not what I'm looking for. I did find the SUBSTR UDF, and have
been experiementing with it, but don't know how to setup and use a
UDF
Example
SELECT * FROM SALESDETAIL s WHERE SUBSTR(s.SD_TAXCODE, 3,2)='CO'
sd_taxcode might be 'IL '
or it could be 'ILCO '
or it could be 'ILCOCC'
is SubStr the right idea here and how do you implement a UDF. I
mean is it all ready there and you just need to link to it, or is it
a piece of code you have to write. Can I do it in Delphi?
Dixon