JOINS
Created two tables 1st table: StudentHeader
and 2nd table: StudentPaymentDetails,
Added Fields and inserted the values in both tables,
Added the relations as well,
Created Job for Joins(Inner Join, Outer Join, Exists Join,
Not-exists Join).
Note: while writing joins use "While select * from TableName".
StudentHeader:
Inner Join: It will shows the data from parent and child which
is matched in both table. It won’t show the not matched records.
X++ code Input:
Outer join: It retrieves the data from the both matching
records and not matched records from the parent table
X++ code:
Exists Join: It retrieves the records from the parent table only if there exist record in the child table it will stops looking after one match in the child table.
X++ code:
Not-exists Join: Not-exists Join shows the data only from
parent table which does not have match with the child table.
X++ code:
Output:
No comments:
Post a Comment