badda_bing
Well Known Member
Hello all,
I'm using the like operation within a Table IO Select on a business view within Find Button Clicked within an application. However when I view the SQL generated I can see no use of the like clause??? Can anybody tell me what I should be expecting ie wildcards at one or both ends of the string? and maybe why I am seeing neither? The SQL that is generated is as follows;
SELECT T0.MCDL01, T0.MCSY, T0.MCRT, T0.MCKY, T1.DRSY, T1.DRRT, T1.DRKY, T1.DRDL01, T1.DRDL02
FROM PS_DEV.TESTDTA.F5590001 T0,PS_DEV.TESTCTL.F0005 T1
WHERE ( T0.MCRT = '26' AND T0.MCSY = '01' AND T1.DRDL01 = 'CLEANING' ) AND ( T0.MCRT=T1.DRRT AND T0.MCKY=T1.DRKY )
ORDER BY T0.MCDL01 ASC,T0.MCSY ASC,T0.MCRT ASC,T0.MCKY ASC
A couple of things;
1) The field that I have used the like operation on is T1.DRDL01. T0.MCRT and T0.MCSY are displaying as expected ie I have used a simple = operation.
2) Just for clarification, this is a select on a business view, not a table - this seems to cause a separate bug in that the Alias, Description and Table Name columns are not populated within the IO dialog box but this not much more than an inconvenience - especially when a field exists on both tables!
3) The business view joins two tables in two different data sources ie Custom table in Business Data and F0005 in Control Tables.
TIA
Paul
8.11 (8.94.L1) Win2003 SQL2000
I'm using the like operation within a Table IO Select on a business view within Find Button Clicked within an application. However when I view the SQL generated I can see no use of the like clause??? Can anybody tell me what I should be expecting ie wildcards at one or both ends of the string? and maybe why I am seeing neither? The SQL that is generated is as follows;
SELECT T0.MCDL01, T0.MCSY, T0.MCRT, T0.MCKY, T1.DRSY, T1.DRRT, T1.DRKY, T1.DRDL01, T1.DRDL02
FROM PS_DEV.TESTDTA.F5590001 T0,PS_DEV.TESTCTL.F0005 T1
WHERE ( T0.MCRT = '26' AND T0.MCSY = '01' AND T1.DRDL01 = 'CLEANING' ) AND ( T0.MCRT=T1.DRRT AND T0.MCKY=T1.DRKY )
ORDER BY T0.MCDL01 ASC,T0.MCSY ASC,T0.MCRT ASC,T0.MCKY ASC
A couple of things;
1) The field that I have used the like operation on is T1.DRDL01. T0.MCRT and T0.MCSY are displaying as expected ie I have used a simple = operation.
2) Just for clarification, this is a select on a business view, not a table - this seems to cause a separate bug in that the Alias, Description and Table Name columns are not populated within the IO dialog box but this not much more than an inconvenience - especially when a field exists on both tables!
3) The business view joins two tables in two different data sources ie Custom table in Business Data and F0005 in Control Tables.
TIA
Paul
8.11 (8.94.L1) Win2003 SQL2000