Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Join And Match
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Join And Match
 Login/Join
 
Gold member
posted
what is the difference between the Join and Match.

This message has been edited. Last edited by: Kerry,


7.1.1
Windows XP
HTML
 
Posts: 64 | Location: North Carolina | Registered: December 04, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
You can find out what differences there are by reading the manual and/or searching the forum first.
If you still have questions after having done this, then we'll be glad to try and help out.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1960 | Location: Netherlands | Registered: September 25, 2007Reply With QuoteReport This Post
Guru
posted Hide Post
Also, keep in mind, if you can get the JOIN to work, use it. MATCH is not as efficient but sometimes necessary.



WebFOCUS 7.6.6/TomCat/Win2k3
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Reply With QuoteReport This Post
<Shyam L>
posted
Krish, you will get the syntax for both from Dev Studio help itself. You need not even go to manuals. Doing it practically will help you in understanding the difference a lot better.

And as Gamp mentioned if you still have specific questions there a lot of people to answer your queries here.
 
Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Think of match as I have two files (or more) that I want to either merge together or do a screening to get say all in one file that are not in the other or all that that have a record in both files and so on. ( A and B, A or B, A not B, B not A, and so on.) Join of files require you have a key field to join on and for those records in the primary file the joined to file may or may not have a matching record.

All syntax I leave to you and the manuals and developer studio.

Have a great day.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Reply With QuoteReport This Post
Gold member
posted Hide Post
here is my code and column names.

-SET &PACK1 = 'Schema.package.SP1';
ENGINE SQLORA SET DEFAULT_CONNECTION DATASOURCE
ENGINE SQLORA
EX &PACK1 '*','2008','USD';
TABLE FILE SQLOUT
PRINT
A1
A2
A3
A4
ON TABLE HOLD AS HOLD1
END

-SET &PACK2='Schema.package.SP1';
ENGINE SQLORA SET DEFAULT_CONNECTION DATASOURCE
ENGINE SQLORA
EX &PACK2 '*','2008','USD';
TABLE FILE SQLOUT
PRINT
A1
A2
A3
A4
ON TABLE HOLD AS HOLD2
END

can u suggest me how to match all the column names. in one single hold file.


WebFOCUS 8.0.0.7 App Studio
 
Posts: 67 | Registered: September 26, 2008Reply With QuoteReport This Post
<JG>
posted
post deleted

This message has been edited. Last edited by: <JG>,
 
Reply With QuoteReport This Post
Master
posted Hide Post
quote:
Also, keep in mind, if you can get the JOIN to work, use it. MATCH is not as efficient but sometimes necessary.


Carol, join is more efficient with a few records (interactive process), but generally if you are processing whole files (in a batch process say) then MATCH will be more efficient.



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
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
MATCH FILE HOLD1
WRITE CNT.A1 AS COUNT1
BY A1 BY A2 BY A3 BY A4
RUN
FILE HOLD2
WRITE CNT.A1 AS COUNT2
BY A1 BY A2 BY A3 BY A4
AFTER MATCH HOLD OLD-OR-NEW
END

That will provide one record per unique combination of fields A1 through A4, with a pair of counters to indicate the source.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Join And Match

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.