Hi, there is a question floated. It's set in basic SQL terms, but its nature is pure math (so maybe I should visit http://mathoverflow.com too).
I have a table in some theoretical database with 6 fields, all are numbers. Also we have basic conditions, such as Field_1 > Field_5, Field_4 = 3 etc., 7 conditions total. I need to write a select, which satisfies at least 4 of them.
Writing looooooooooooooooooooooooooong select with many logical conditions such as *(cond_1 AND cond_2 AND cond_3 and cond_4) OR (...)* is not a way, because 4-combination from 7 elements is equal to 140, and one doesn't want to write so many conditions.
So how do I write a select in its simplified form?