如何从内连接中添加列总计数

时间:2017-02-22 08:02:05

标签: sql sql-server sql-server-2016

我有桌子 - 表a - 表b - 表c 我想计算表b上我的查询列的状态:

select b.code, c.nama as work, c.name as workout, b.firstdate, b.lastdate, a.code, b.status 
from table a
inner join table b on A.code = b.code 
inner join table c on b.code = c.code
Where b.firstdate between '12/04/2016 11:56:17' and '12/06/2016 11:56:17' order by b.nama, c.nama, b.firstdate ASC

所以我必须在我的SQL查询中放入计数

enter image description here

1 个答案:

答案 0 :(得分:1)

UITabBarController