4 sadly, both ways gives me this output when i do a sum across:
Joe Smith 3 Mike Smith 1
5. What's the right join to get this output
Joe Smith 3 Jane Smith . Mike Smith 1
Thanks kindly for your help,
DrewThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.6 Windows, All Outputs
August 18, 2010, 03:08 PM
atturhari
JOIN LEFT_OUTER ID on A TO ALL ID on B END
WF 7.7.02 on Windows 7 Teradata HTML,PDF,EXCEL,AHTML
August 18, 2010, 04:21 PM
haridis
may all of my problems be solved as easily.
thank you.
WebFOCUS 7.6 Windows, All Outputs
August 19, 2010, 07:57 AM
Danny-SRL
Drew,
From this thread, I gather that you are joining 2 relational tables, hence the LEFT_OUTER option. If you join 2 FOCUS files then you would use your initial syntax. However, please notice:
JOIN
ID IN A TO ALL ID IN B AS J1 {IN, not ON; use AS joinname}
END
SET ALL ON {WITHOUT A ;}
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
August 19, 2010, 03:26 PM
haridis
Daniel-
I tried the following join:
-*---------------------------------------------- -* -* 5 Join the Files -* -*______________________________________________
JOIN CLEAR *
JOIN BUYER_NO IN UD0 TO ALL NEXT_ID IN UD1 AS J5 END
SET ALL ON;
UD0 and UD1 stand for User Defined 0 & 1. They are referencing hold files, not fomented as focus.