Answer the question
In order to leave comments, you need to log in
How to select products from a table by dynamic parameters (located in another table)?
Hello, the situation is this: there is a table of products (products of different categories, such as computers and chairs, cartridges, etc.) and there is a table of product properties (by type product - property - value) and I can’t create a request for a selection by several parameters, since with joine 'e of these tables, several rows of one product are obtained in each one separate property. Maybe someone knows how to select products by several parameters, if for example I need a product with color = black and interface = usb? Thank you in advance for your help.
Answer the question
In order to leave comments, you need to log in
print(re.sub(r'aa+', lambda t: '(' + ('a+' * len(t[0]))[:-1] + ')', s))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question