Question: REQUESTED WORK You need to implement in Prolog two operations on relations, namely: 1. projection(list of columns to remember, relation) that produces a new relation

REQUESTED WORK You need to implement in Prolog two operations on relations, namely: 1. projection(list of columns to remember, relation) that produces a new relation by containing only the specified columns of the original relation. For example: relation1(Assignment), projection(["Course", "Local"], Assignment, RelationR). produces the relation "RelationR" with following values: 2. join(list of columns to be matched, relation1, relation2) that produces a new relation obtained by welding rows together from the relation1 and relation 2 that have identical values of fields in specified columns by taking care to remove columns that are repeated. For example: relation1(Registration), relation2(Assignment), join(['Course'], Registration, Assignment, RelationR). produces the relation "RelationR" with following values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
