Hi All,
Inner Join vs Left Outer Join
Can anyone please explain how inner join works on two tables and on three tables?if possible with example?
Regards,
Pacchi
Updated May 18, 2018
Hi All,
Can anyone please explain how inner join works on two tables and on three tables?if possible with example?
Regards,
Pacchi
Comments
TABLES: mara, marc, mard.
TYPES: BEGIN OF t_mara,
matnr LIKE mara-matnr,
END OF t_mara.
DATA: it_mara TYPE STANDARD TABLE OF t_mara WITH HEADER LINE.
SELECT mara~matnr
INTO CORRESPONDING FIELDS OF TABLE it_mara
FROM mara INNER JOIN marc ON ( mara~matnr = marc~matnr )
INNER JOIN mard ON ( marc~matnr = mard~matnr AND marc~werks = mard~werks )
* where mard~lgort = ' Storage Location Here you can use where class
" and mara~matnr = ' Matnr.