Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Inner Join

Former Member
0 Kudos

Hi All,

Inner join is possible on pooled tables, cluster table. How???

If Yes, then plz tell me how..

if not, then wat can we do against pooled tables, cluster table, any other option for inner join.....

Regards,

<b>Anil Kumar</b>

5 REPLIES 5

Former Member
0 Kudos

Hi,

To my knowledge, Inner Join is not possible in the case of CLUSTER table.

Best way is to get records separately to two internal tables from other tables and CLUSTER tables, then join these two internal tables using for all entries. This will definitely work.

Try and reward if found useful.

Former Member
0 Kudos

Hi,

inner joins are possible in cluster and pooled tables

but if we use then the performance will be very poor..

for eg

take bseg is a cluster table

instead of going to bseg table

we have the related transparent tables like

vbsegk, " Document Segment for Vendor Document Parking

vbsegd, " Document Segment for Customer Document Parking

vbsegs, " Description Document Segment for Document Parking - G/L Account data base.

like these.. and so many

better to write select on these tables and loop the itab

<b>for inner joins</b>

SELECT afield1 afield2 a~field3

b~field1

bfield2 bfield3

from bseg as a inner join bkpf as b

on afield1 = bfield1

where conditions.

thanks & regards,

Venkatesh

0 Kudos

Hi Venkatesh,

If u use the coding like u mentioned in the reply, u will get the following error message,

<b>For pooled tables, cluster tables and projection views, JOIN is not allowed. </b>

So, u cannot use join in pooled and cluster tables.

Try to check it.

Former Member
0 Kudos

hi anil,

go thro this link.

Regards...

Arun.

Former Member
0 Kudos

Hi Anil,

Inner join is not possible for cluster tables

so we can get the data from the table into internal tables and join that

internal tables using FOR ALL ENTRIES.

<b>

Regards,

Azhar</b>