skip to Main Content

MySQL sub select ignores condition

This query works good but ignores the AND members.active='1' condition completely. It delivers always the same results, no matter if active is 1 or 0. Any idea? select amount, count(*) AS quantity from ( SELECT participations.member_number, COUNT(participations.member_number) AS amount FROM…

VIEW QUESTION

ORDER BY COUNT is slow – Mysql

A table (phototag) consists of two foreign key columns (photoid, tagid). I want to get the most related photos based on their tags. There are 4 million photos with 5-10 tags. For example, the photoid 10009 has 6 tags. I…

VIEW QUESTION
Back To Top
Search