我有以下的sql代码。它可以工作,但是当我运行查询时,它会重复数据不止一次。我相信它与Inner Join有关。由于它是内连接两次,因此数据在报告中重复两次。任何帮助表示赞赏
SELECT NewRelative.FullName, GiftGave.EventName, GiftGave.EventDate, GiftGave.AmountGiven, GiftGave.Notes, GiftRcvd.EventName
FROM (NewRelative INNER JOIN GiftGave ON NewRelative.FullName = GiftGave.FullName) INNER JOIN GiftRcvd ON NewRelative.FullName = GiftRcvd.FullName
WHERE (((NewRelative.FullName)=[forms]![FormRelativeReport]![TxtPickRelative]));