Application Development and Automation 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: 
Read only

Inner join

Former Member
0 Likes
508

Hi,

Lets suppose, i have made inner join on three tables, a, b & c. I have mentioned the fields which i need to select from tables a and b. But in table c i want to select all fields. is there any way like '*', that without mentioning like cf1, cf2...... the fields, I can select all the fields from table C.

Thanks,

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
485

No you can not mix a field list and * together, you have to specific all fields that you want statically, or simply use *

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
486

No you can not mix a field list and * together, you have to specific all fields that you want statically, or simply use *

Regards,

Rich Heilman

Read only

Shafiq_Rehman1
Active Contributor
0 Likes
485

I just tried that, it was an interesting question. I dont think there is a way to put * like that.

You can do it in open SQL, but putting "TableName.*" in joins.

Read only

Former Member
0 Likes
485

Hi ,

step 1) select * from c into itab1

step 2) then write a inner join b & c and put it into other internal table

step 3) loop at itab1

read statement from itab2

endloop

Regards

Sreeni