I have a form that POSTS a postal code value (A1A1A1). In my model I have a col of alpha chars that relate to the province that has postal codes that begin with that letter;
letter | province
-------------------
A | NLFD
B | NS
C | PEI
...
I am trying to get the record where the first char of my request (A1A1A1 - so 'A' in that case) equals the 'letter' value.
Is there a way to use LIKE and be specific about which char in the value? Or do I need something else?
Thanks!