I have a document with the following fields:
- field1
- field2
- field3
- field4
I have the following table structure:
field1 | field2 | field3 | field4 || result
--------------------------------------------------
foo bar MC
foo test1 MR
test2 test3 OM
foo test1 bar CM
When a document comes in with field1 is foo, field2 (null value), field3 is bar, the result MC should be selected. When a document comes in with field1 is foo, field2 is test1, field3 is bar, the result CM should be selected.
Of course, you can check each column and leave the matching rows open until you looped each row. But, this table structure can become very large, and I'm looking for some kind of algorithm which solves the above issue, on a performant and good way.
Any idea's?
field1, etc. limited? - vainolo