我想使用 GROUP BY、ORDER BY、COUNT 在 Sequelize ORM 中编写查询。
这是我的 SQL 查询:
SELECT COUNT(1),
bucket_name,
clusterId
FROM aidc_tenoco.output_table
WHERE clusterId IS NOT NULL
GROUP BY clusterId
ORDER BY COUNT(1) DESC
LIMIT 0,
1
Run Code Online (Sandbox Code Playgroud)
我想写续集,请帮帮我。
sequelize.js ×1