Focal Point
Full Outer Join

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4961026791

November 21, 2006, 02:34 PM
LEX-IA
Full Outer Join
Hello all,

I'm currently working with two tables and I need to use a full outer join to get data from both tables regardless of them matching or not.

The syntax i am using is:
join full_outer field1 in table1 to field1 in table 2

the above gives me an error...

I have read that the Match command can be used instead, i have tried it however i dont get the expected results...

can we do full outer join in wf? Confused

Thanks
Cynthia


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
November 22, 2006, 03:55 AM
hammo1j
Cynthia

You can always use sql passthru as a fall back to do full outer as it is not directly supported in wf.

Match syntax would be

MATCH FILE table1
SUM/PRINT

BY field1 <-- names and format must match
RUN
FILE table2
SUM/PRINT

BY field1
AFTER MATCH HOLD OLD-OR-NEW
END

Post what you did on MATCH and we can tell you what's wrong

Regards

John



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
November 22, 2006, 02:05 PM
LEX-IA
Hi John,

Thanks for the tip!
I finally got my tables to work using a join and playing with the dates. I added one to last year's data so that last year's and this year's data would line up.

Thanks
Cynthia


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX