Hi there,
I am trying to create a script that will show all the information I require.
In one table I have a field called RECTYPE - now RECTYPE can be 801, 802, 803, 804 - it may exists sometimes for one user or not for another. In my simple mind I thought of just using a LEFT OUTER JOIN Twice then Aliasing the names i.e
LEFT OUTER JOIN schema.FFS01P0A
ON schema.FFS01P02.CLAFCNO = schema.FFS01P0A.CLAFCNO
AND schema.FFS01P02.CLIENTNO = schema.FFS01P0A.CLIENTNO
AND schema.FFS01P02.BUSINESS = schema.FFS01P0A.CLTYPE1
AND schema.FFS01P02.CLCURCD = schema.FFS01P0A.CLCURCD
AND schema.FFS01P0A.RECTYPE = 801
LEFT OUTER JOIN schema.FFS01P0A
FFS01P0A1
ON schema.FFS01P02.CLAFCNO = schema.FFS01P0A1.CLAFCNO
AND schema.FFS01P02.CLIENTNO = schema.FFS01P0A1.CLIENTNO
AND schema.FFS01P02.BUSINESS = schema.FFS01P0A1.CLTYPE1
AND schema.FFS01P02.CLCURCD = schema.FFS01P0A1.CLCURCD
AND schema.FFS01P0A.RECTYPE = 802
And so on - however i keep getting an error - can someone please tell me the correct syntax for this...or indeed if it can be done.
I am using Run a SQL Script in System i Navigator verion 7
Many thanks
I am trying to create a script that will show all the information I require.
In one table I have a field called RECTYPE - now RECTYPE can be 801, 802, 803, 804 - it may exists sometimes for one user or not for another. In my simple mind I thought of just using a LEFT OUTER JOIN Twice then Aliasing the names i.e
LEFT OUTER JOIN schema.FFS01P0A
ON schema.FFS01P02.CLAFCNO = schema.FFS01P0A.CLAFCNO
AND schema.FFS01P02.CLIENTNO = schema.FFS01P0A.CLIENTNO
AND schema.FFS01P02.BUSINESS = schema.FFS01P0A.CLTYPE1
AND schema.FFS01P02.CLCURCD = schema.FFS01P0A.CLCURCD
AND schema.FFS01P0A.RECTYPE = 801
LEFT OUTER JOIN schema.FFS01P0A
FFS01P0A1
ON schema.FFS01P02.CLAFCNO = schema.FFS01P0A1.CLAFCNO
AND schema.FFS01P02.CLIENTNO = schema.FFS01P0A1.CLIENTNO
AND schema.FFS01P02.BUSINESS = schema.FFS01P0A1.CLTYPE1
AND schema.FFS01P02.CLCURCD = schema.FFS01P0A1.CLCURCD
AND schema.FFS01P0A.RECTYPE = 802
And so on - however i keep getting an error - can someone please tell me the correct syntax for this...or indeed if it can be done.
I am using Run a SQL Script in System i Navigator verion 7
Many thanks