I have a table that has Last name and first name in 1 field seperated with a comma.
Example : GUTIERREZ, MERCEDES
If I issue the command line ?left(customer,At(",",customer)-1) I get
GUTIERREZ
however when I do a select statement and try to do all the records, they are all truncated. No last name has any more than 5 letters
eg:
SELECT job as wordnumb, assigned as inspector, contractor as cmpynumb,;
electricut as woh_ele,;
gasutility as woh_gas,
left(customer,At(",",customer)-1) as woh_last,;
ALLTRIM(SUBSTR(customer, AT(',', customer)+1)) as woh_firs,;
address as woh_sad1, city as woh_scit, zip as woh_szp5, ;
CTOD('03/18/2013') as reportdate, CTOD('03/18/2013') as statusdate, "O" as status,SPACE(1) AS insptype;
FROM mar18report WHERE job NOT IN (sele wordnumb FROM cpmast)
All of the records have only 5 characters.
Can anyone offer any insight into this?
Example : GUTIERREZ, MERCEDES
If I issue the command line ?left(customer,At(",",customer)-1) I get
GUTIERREZ
however when I do a select statement and try to do all the records, they are all truncated. No last name has any more than 5 letters
eg:
SELECT job as wordnumb, assigned as inspector, contractor as cmpynumb,;
electricut as woh_ele,;
gasutility as woh_gas,
left(customer,At(",",customer)-1) as woh_last,;
ALLTRIM(SUBSTR(customer, AT(',', customer)+1)) as woh_firs,;
address as woh_sad1, city as woh_scit, zip as woh_szp5, ;
CTOD('03/18/2013') as reportdate, CTOD('03/18/2013') as statusdate, "O" as status,SPACE(1) AS insptype;
FROM mar18report WHERE job NOT IN (sele wordnumb FROM cpmast)
All of the records have only 5 characters.
Can anyone offer any insight into this?