我在一张桌子上收集了几处 entries子。 客户要求我提供:
- The number of unique entries
- The number of entries that occur twice.
- The number of entries that occur three times.
我能够确定独一无二的条目数目,但无法确定如何删除特定时期的条目数目。 我试图这样做:
SELECT email, count(email) AS NumberOfEntries
FROM entries
GROUP BY NumberOfEntries
造成错误: Can t group on NumberOftries
I m hoping to see something like this:
NumberOfEntries / Total
1 / 1,000 (Meaning 1,000 people entered once and only once)
2 / 1,300 (Meaning 1,300 people entered exactly twice)
感谢任何帮助!