Is there a Union that evaluates the convergence of samples?

There are 2+ samples

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

UNION gets all the values from the two samples. And I need to obtain the convergence of the samples, in simple words, something like Ala array_intersect in php for arrays, but only for queries.
April 7th 20 at 11:06
1 answer
April 7th 20 at 11:08

Find more questions by tags MySQL