RightJoin returns all records from the right table (table2), and the matched records from the left table (table1). The result is NULL from the left side, when there is no match. <!> RightJoin transforms an expr column to a raw column
(right *DataTable, on []JoinOn)
| 37 | // The result is NULL from the left side, when there is no match. |
| 38 | // <!> RightJoin transforms an expr column to a raw column |
| 39 | func (left *DataTable) RightJoin(right *DataTable, on []JoinOn) (*DataTable, error) { |
| 40 | return newJoinImpl(rightJoin, []*DataTable{left, right}, on).Compute() |
| 41 | } |
| 42 | |
| 43 | // RightJoin the tables. |
| 44 | // tables[0] is used as reference datatable. |