P
P
penexe2013-06-10 18:37:53
MySQL
penexe, 2013-06-10 18:37:53

Selection of applications suitable for the condition

There are requests, the request has parameters, each parameter is in its own table. You must select applications that meet the conditions. (those for where everything is known)
Everything seems to be simple, but the eye is already blurry, somewhere I'm stupid.

Different requests may contain different number of parameters.

an example from life is to select an object from the “rent” rubric, ads from the “rent” rubric (those who want to rent)

the scheme
image

is valid:
application # 1
prop1 = 25 and 6
prop2 = 5

application # 2
prop1 = 25

under the initial condition:
prop1 = 25 select 2 requests
prop2 = 5 select 1st request
prop2 = 7 select none
prop3 = 6 select none

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Cherepanov, 2013-06-10
@fear86

Well, one join for each attribute, what's the problem then?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question