0
I have a Mysql Database containing all combinations of Lotofácil, exemplified below:
I am trying to recover, for example, the games that contain the tens 11, 17 and 21, obligatorily in the same game.
I’ve tried using one:
SELECT * FROM lfv2
WHERE Bol1 IN(11,17,21)
AND Bol2 IN(11,17,21)
AND Bol3 IN(11,17,21)
AND Bol4 IN(11,17,21)
AND Bol5 IN(11,17,21)
AND Bol6 IN(11,17,21)
AND Bol7 IN(11,17,21)
AND Bol8 IN(11,17,21)
AND Bol9 IN(11,17,21)
AND Bol10 IN(11,17,21)
AND Bol11 IN(11,17,21)
AND Bol12 IN(11,17,21)
AND Bol13 IN(11,17,21)
AND Bol14 IN(11,17,21)
AND Bol15 IN(11,17,21);
However nothing is returned. But there are games that contain these dozens, as is the case of the game that occupies the position 3.268.760, among others. Is there any way for Mysql to return this query ?