|
Note: The buffer length of 20 should not be confused with how many
_characters_ the field has. The fields have equivalent characters in
length, thus no Substring should be done.
Scenario:
chgjob ccsid(37)
strsql
create table qtemp.p1 (Z numeric (10, 0) not null )
create table qtemp.p2 (G graphic (10) ccsid 13488 not null )
insert into qtemp.p1 values(20070816)
insert into qtemp.p2 values('20070816')
Question: How to join equivalence on Z and G?
select Z ,G
from qtemp.p1 ,qtemp.p2
where char(Z) = G
Regards, Chuck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.