我实际上是尝试使用此查询在一个查询中获取所有活动和非活动用户
SELECT SUM(CASE WHEN users.status = 1 THEN 1 ELSE 0 END) AS 'Active_players', SUM(CASE WHEN users.status = 0 THEN 1 ELSE 0 END) AS `InActive_players` FROM `users` AS `users` INNER JOIN `organization_entries` AS `organizationEntries` ON `users`.`id` = `organizationEntries`.`user_id` AND `organizationEntries`.`organization_id` = '1' AND `organizationEntries`.`type` = '001';
但我无法理解如何使用Sequelize查询来编写此查询。
我试过这个链接http://docs.sequelizejs.com/manual/tutorial/querying.html但是无法正确理解如何使用sequelize实现它。