Ok, this is tricky:
Given the following example table:
Id, SeqNum, BoolType, BoolValue
1, 1, 1, 1
1, 2, 1, 0
2, 1, 1, 1
2, 2, 1, 1
3, 1, 1, 1
3, 2, 0, 0
Id seperaties the entries,
BoolType 1 = And, 2 = Or
BoolValue 0 = False, 1 = True
So For Id 1, we need to determine if it is true
In...