为什么Crystal Reports不将String类型数据绑定到此报告?

时间:2012-05-21 09:37:22

标签: crystal-reports

查询

select acc.cust_no, surrogateTable.category as categoryCall, count(acc.calling_no) as totalCalls
from (select 'Completed' as category union all select 'Unanswered' as category) as surrogateTable
left join acc on surrogateTable.category = 'Completed' 
where acc.method = 'INVITE' AND acc.sip_code = '200' and 
(acc.cust_no = 'BIS00031' or acc.cust_no = 'BIS00031') 
UNION 
select missed_call.cust_no, surrogateTable.category as categoryCall, count(missed_call.calling_no) as totalCalls 
from (select 'Completed' as category union all select 'Unanswered' as category) as surrogateTable 
left join missed_call on surrogateTable.category = 'Unanswered' 
where missed_call.method = 'INVITE' AND missed_call.sip_code = '487' and 
(missed_call.cust_no = 'BIS00031' or missed_call.cust_no = 'BIS00031') 
order by categoryCall ASC

查询结果

enter image description here

报告设计

enter image description here

报告结果

enter image description here

任何人都可以告诉我为什么我没有在Crystal Report结果中获得categoryCall结果? (它应该在报告的“类别”栏中说“已完成”和“未答复”,但根本没有显示)

0 个答案:

没有答案