Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要帮助将这段 T-SQL 转换为 ActiveRecord 查询
select entry from faxlog group by entry having count(entry) >= 8
试试这个:
Faxlog.group(:entry).select("entry").having("count(entry) >= ?", 8)