我不太确定这个话题是否已被回答。我看到一个帖子与我的问题几乎相同(here),但它仍然没有给我完美的解决方案...
Here是我遇到问题的报告的快照:
右键单击Crystal Report中的对象并设置'抑制IF Duplicated'没有帮助,虽然它适用于所有其他领域(你可以看到它们没有重复)......
任何帮助将不胜感激。感谢。
从评论中查询:
SELECT b.BusinessID, a.AccoID, b.CatID, b.BusinessName, b.Address,
b.OwnerName, b.ContactPerson, b.ContactNo, b.MunicipalityID,
b.YearEstablished, b.TotalEmployees, ar.RoomName, ar.RoomTotal,
ar.RoomCapacity, ar.RoomRate, h.HallName, h.HallCapacity, h.Rate
FROM dbo.Accommodation AS a
INNER JOIN dbo.BusinessRecord AS b ON a.BusinessID = b.BusinessID
LEFT OUTER JOIN dbo.AccoRoomDtl AS ar ON a.AccoID = ar.AccoID
LEFT OUTER JOIN dbo.AccoHallDtl AS h ON a.AccoID = h.AccoID