Postgresql – Group By with Having Count, not working as expected
SELECT * FROM destinations; id | updated_at | created_at | name | image --------------------------------------+----------------------------+----------------------------+----------------------------------------------+---------------------------------------------------- cf534cd9-56dd-43d5-87bb-713538ec748d | 2023-08-08 23:44:42.822226 | 2023-08-08 23:44:42.822226 | Afghanistan | https://x.cloudfront.net/flags/af.svg af4e3ac4-e9a6-4c17-8077-664d896f3a7f | 2023-08-08 23:44:42.822226 | 2023-08-08 23:44:42.822226 | Aland Islands | https://x.cloudfront.net/flags/ax.svg b377b81e-3a0c-4768-84c4-bba67e3bae1b | 2023-08-08…