K
K
KoRNeT46RuS2020-02-11 09:18:49
MySQL
KoRNeT46RuS, 2020-02-11 09:18:49

Is there a Union that calculates convergence of samples?

There are 2+ samples

SELECT productId FROM product WHERE (condition #1)
SELECT productId FROM product WHERE (condition #2)
...

UNION gets all values ​​from two samples. And I need to get convergence from the selections, in simple words, something like array_intersect in php for arrays, but only for queries.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman MySQL, 2020-02-11
Tag

How to emulate the MySQL INTERSECT operator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question