Hi all!<br><br>I've got a problem: I need to compare first 4 letter to another variable in WHERE clause. <br><br>Example: select * from table1<br> where first 4 letters of Field 1 = variable1<br><br>I tried following SUBSTRING but it did not work. Field 1 is numeric and its length is 10. Variable 1 is char.<br><br>SUBSTRING (FIELD1 AS CHAR(10) FROM 1 TO 4) = VARIABLE1<br><br>What went wrong?<br><br>Thanks for help! <br><br>