monkeylizard
MIS
I have two tables I need to link using a zip code stored in string fields. Table A has a mix of zip and zip+5 data and Table B only has the five digit zip.
I'm using a LEFT JOIN to get all of my records returned, but any in table A that have the Zip+5 return a null value for the county (stored in Table B).
If I grab the SQL query and run it in SQL QA, I get the results I want by using SUBSTRING(fieldname,1,5)
Can I get Crystal to do the SUBSTRING?
Using CR7.0 and SQL7.0
Monkeylizard
Sometimes just a few hours of trial and error debugging can save minutes of reading manuals.
I'm using a LEFT JOIN to get all of my records returned, but any in table A that have the Zip+5 return a null value for the county (stored in Table B).
If I grab the SQL query and run it in SQL QA, I get the results I want by using SUBSTRING(fieldname,1,5)
Can I get Crystal to do the SUBSTRING?
Using CR7.0 and SQL7.0
Monkeylizard
Sometimes just a few hours of trial and error debugging can save minutes of reading manuals.