I have a SQL view that I created to return a list of services performed on contract vessels for a specific time frame. I wanted to return all contract vessels even if no services were performed and have a zero for those results.
In order to do this I had to set the "where" conditions at the Join level.
Example:
LEFT OUTER JOIN dbo.tblServiceRequest Services ON Vessels.VesselID = Services.VesselID AND Services.AttendanceDate BETWEEN CONVERT(DATETIME,
'2009-01-01 00:00:00', 102) AND CONVERT(DATETIME, '2009-01-31 00:00:00', 102) AND Services.RequestType = '1'
If I create the same data set in Crystal using the same tables and use the select expert to filter the data it doesn't return vessels with zero services.
Is there a way to accomplish this in Crystal?
In order to do this I had to set the "where" conditions at the Join level.
Example:
LEFT OUTER JOIN dbo.tblServiceRequest Services ON Vessels.VesselID = Services.VesselID AND Services.AttendanceDate BETWEEN CONVERT(DATETIME,
'2009-01-01 00:00:00', 102) AND CONVERT(DATETIME, '2009-01-31 00:00:00', 102) AND Services.RequestType = '1'
If I create the same data set in Crystal using the same tables and use the select expert to filter the data it doesn't return vessels with zero services.
Is there a way to accomplish this in Crystal?