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     getting Aggregation error-2590,91,94 while joining.
Go
New
Search
Notify
Tools
Reply
  
getting Aggregation error-2590,91,94 while joining.
 Login/Join
 
Gold member
posted
Hi,
I am trying to join two master files created from SQL server tables.
Table A contains one primary key Key1.
Table B contains composite primary keys.Key1+Key2
I am writing a join condition as follows
Join
Key 1 in Table A to
Key 1 in table B as J0
end
Table file TableA
print *
end
Which retrieves records.But,swiching on the SQLTrace SET paramter(SET TRACEON=SQLAGGR//CLIENT) shows error 25901 and 25904 in the view source text file.

Can any one help me or explain me how exactly the joins are working and how to overcome this error.
 
Posts: 71 | Registered: November 20, 2003Reply With QuoteReport This Post
Silver Member
posted Hide Post
Kasi,

Because Table B has a composite key, then Key1 may occur multiple times, so you would have to either do

Join Key1 in TableA to ALL Key1 in TableB

or Use TableB instead of TableA and then ...

Join Key1 in TableB to Key1 in TableA

Your current situation may be retrieving some records, but it's only getting the first joined record and not all of them. Thus the keyword 'ALL'.

Good luck, TerryW
Cool
 
Posts: 40 | Registered: March 10, 2004Reply With QuoteReport This Post
Gold member
posted Hide Post
Terry
thank you so much.But I used ALL before looking into the reply.My need has become different-I need MATRIX.
I have 2 rows in table TABLE1 for the key KEYA and TABLEB contains the 3 rows for the same key KEYA.
Following is an Example:
TableA
----------
col1 col2
-----------------
keyA kasi
keyA abc
keyB xyz

TableB
--------
col1 col2
------------------
keyA admin
keyA user
KeyA tech

Now I want to join Table A and Table B in such a way that i can get 2x3 matrix.
I tried as follows
join
col1 in TableA to
col1 in tableB as j0
End
As well as
join
col1 in TableA to
All col1 in tableB as j0
End
I am getting FOC1070 or FOC1071 error.FROM or TO value in Join is out of range.
Even after interchanging the position of the TableA and TableB, i am getting the same error.
Any idea to form the MATRIX is really helpful.
 
Posts: 71 | Registered: November 20, 2003Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Both files need to be sorted (if they are flat files).
 
Posts: 124 | Location: Lebanon, New Hampshire | Registered: April 24, 2003Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi,
No they are not flat files...
My data is available in an RDBMS..
I am having a common problem with the datawarehouse is the data are populated with Many to Many relationship in all the tables.

Consider an Employee attended various training programs.(Training table)consider it contains 4 records.EmpId & Course code are serogate keys.

The dates attended is in another table. Consider for the same course it contains multiple rows.(Timetable)-Consider it contains 9 rows.EmpId & Dt_course_attended & courseid are serogate keys.

How to join these?

Thanks..
 
Posts: 71 | Registered: November 20, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     getting Aggregation error-2590,91,94 while joining.

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