Question: 3 . 7 JOIN Operator - - You Provide It ( Submission 3 ) Actions Implement the JOIN operator. join ( relation _ one, relation

3.7 JOIN Operator -- You Provide It (Submission 3)
Actions
Implement the JOIN operator.
join (relation_one, relation_two, condition)
Performs Theta JOIN on two relations
Parameters:
relation_one: Table Object, the R1 relation in the theta join
relation_two: Table Object, the R2 relation in the theta join
condition: str, the condition for theta join
Returns:
Table Object, the resulted relation after R1\theta R2
IMPORTANT Join uses caresian function. Cartesian adds "_x" and "_y" to relation attribute names. Specify the colum name accordingly in join condition.
Attributes mentioned in the join condition must exist in either relation. Otherwise, print error message "Condition Syntax Error" and return None.
DO NOT use pandas methods to construct operator function. You can use:
python's list/dictionary manipulation
the utility functions provided above
other relational operators implemented in this notebook
Columns in result/output can be displayed in any order.
We don't have any requirement on the Table name.
You don't need to remove the duplicates.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!