我是SSRS Reporting Services
的新手。我的报告运行良好,只是它没有显示null
或blank
个单元格。我知道有一些。我应该在此查询中添加什么来显示blank
中的null
或DistributionOwnerId
?提前谢谢!
SELECT Id,
CONVERT(varchar(10), DistributionDate, 101) AS DistributionDate,
DistributionDate AS OriginalDistributionDate,
MedDrugName AS DrugName,
MedDistributionSessionDescription AS Session,
DistributionOwnerId,
CASE a.[Status]
WHEN 0 THEN 'Success'
WHEN 1 THEN 'Refused By Inmate'
WHEN 2 THEN 'Inmate Did Not Show'
WHEN 3 THEN 'Inmate Not In Cell'
WHEN 4 THEN 'Security Lockdown'
WHEN 5 THEN 'Medication Held (State Reason)'
WHEN 6 THEN 'Medication Out Of Stock'
END AS Status,
Notes,
UserName,
(SELECT NoteText + ';' AS Expr1
FROM MARDistAddNotes AS c
WHERE (a.Id = MARDistributionId) FOR XML PATH('')
) AS AdditionalNotes
, InmateLastName
, InmateFirstName
, InmateNumber
FROM MARDistribution AS a
WHERE (Status > 0)
ORDER BY DistributionDate, Session
SELECT CONVERT (DATE, GETDATE()) 'Date Part Only'