Reputation: 1658
There is Mysql Ver 15.1 Distrib 5.5.64-MariaDB table:
id date count
1 17.10.2021 1
2 17.10.2021 1
3 17.10.2021 2
1 18.10.2021 1
2 18.10.2021 2
3 18.10.2021 3
1 19.10.2021 1
2 19.10.2021 1
3 19.10.2021 4
How to select only that id which has count < 2 for all dates ?
Expected result:
id
1
Upvotes: 2
Views: 39