進出口工作使用SSRS 2008SQL指望日期
我有一些代碼帶回2列DateAppRcvd和顧問
報告這裏是我下面的代碼:
SELECT
COUNT(pm.DateAppRcvd) AS [DateAppRcvd],
u.FullName AS [Advisor]
FROM tbl_Profile_Mortgage AS pm
INNER JOIN tbl_Profile AS p
ON pm.FK_ProfileId = p.Id
INNER JOIN tbl_User u
ON p.Advisor = u.UserId
WHERE DateAppRcvd Between '01-Nov-2013 00:00:00.000' AND '30-Nov-2013 23:59:00.000'
AND pm.AccelInd <>'1'
and u.FullName in ('Colin Sneddon ','Graeme Hastie','Jonathon Bede Pratt','Mark Reidy','Neil Jones','Nigel Crook','Sharon Parouty','Tom McSherry')
GROUP BY u.FullName
這會帶給我返回
DateAppRcvd Advisor
11 Colin Sneddon
1 Jonathon Bede Pratt
17 Mark Reidy
4 Neil Jones
5 Nigel Crook
14 Sharon Parouty
8 Tom McSherry
怎麼會捨棄格雷姆。我知道爲什麼它這樣做,因爲這個用戶沒有日期/計數。
有沒有一種方法來設置它帶回格雷姆爲0的DateAppRcvd
請給我們一個輸入示例。 – PeterRing