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

please correct me.

Former Member
0 Likes
458

Can anybody tell me how the below stmt gets executed ?

I am not expert in inner joins ( i just have idea ). i really want to have a good understanding on this inner joins.

SELECT SINGLE a~name2 INTO lv_name2

FROM tvst AS t INNER JOIN adrc AS a

ON aaddrnumber = tadrnr

WHERE vstel = lv_vstel.

for lv_vstel, the above SELECT finds adrnr value from tvst table.

Based on above adrnr value, the program selects adrc tableu2019s name2 field .

Please correct me ?

Use meaningful subject in future.

Edited by: Vijay Babu Dudla on Dec 1, 2008 11:46 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
425

Hi

Your understanding is correct.

The two tables TVST and ADRC can be related to each other through Address number.

So, using the VSTEL (Shipping point), you get ADRNR (address number) from TVST. Go to the table ADRC with this address number find the matching record (TVST-ADRNR = ADRC-ADDRNUMBER) and get the address data.

Regards

Raj

1 REPLY 1
Read only

Former Member
0 Likes
426

Hi

Your understanding is correct.

The two tables TVST and ADRC can be related to each other through Address number.

So, using the VSTEL (Shipping point), you get ADRNR (address number) from TVST. Go to the table ADRC with this address number find the matching record (TVST-ADRNR = ADRC-ADDRNUMBER) and get the address data.

Regards

Raj