I have two sets of data X (Course) and Y (Student). X shows the list of courses available with 4 criterias which define a course. Y shows the list of students with the same criterias.
Data X
DATA
X 1 2 3 4
A Y N Y Y
B N Y Y Y
C N N Y N
D Y Y Y Y
E Y Y N N
Data Y
DATA
Y 1 2 3 4
a Y Y Y Y
b Y N Y Y
c Y N Y N
d N Y Y Y
e N N Y N
f Y Y N N
g N Y Y N
h Y Y N N
I would like to see which student is mapped to which course depending on the 4 criterias. Eg: a->D. While 1-3 criterias are standard, the criteria 4 is flexible ie if 4 is Y then it would be used for matching else only first 3 criterias will be used.Eg: c has N under 4, so we use only criteria 1-3 for matching and we get c->A. One way is to concatenate these criterias to get an unique string and then lookup but this becomes complicated if we have a lot of data and a large no. of flexible criterias.
Data X
DATA
X 1 2 3 4
A Y N Y Y
B N Y Y Y
C N N Y N
D Y Y Y Y
E Y Y N N
Data Y
DATA
Y 1 2 3 4
a Y Y Y Y
b Y N Y Y
c Y N Y N
d N Y Y Y
e N N Y N
f Y Y N N
g N Y Y N
h Y Y N N
I would like to see which student is mapped to which course depending on the 4 criterias. Eg: a->D. While 1-3 criterias are standard, the criteria 4 is flexible ie if 4 is Y then it would be used for matching else only first 3 criterias will be used.Eg: c has N under 4, so we use only criteria 1-3 for matching and we get c->A. One way is to concatenate these criterias to get an unique string and then lookup but this becomes complicated if we have a lot of data and a large no. of flexible criterias.