当我使用事务表的内部联接时,我得到了重复的帐号。如何限制它,所以我看不到重复的帐号。
SELECT A01_AccountMaster.AccountNumber, A01_AccountMaster.FamilyMemberType,
A01_AccountMaster.AccountType, A01_AccountMaster.FamilyId,
A01_AccountMaster.Title, A01_AccountMaster.FirstName,
A01_AccountMaster.MiddleName, A01_AccountMaster.LastName,
A01_AccountMaster.Suffix, A01_AccountMaster.OrganizationName,
A01_AccountMaster.Status,
T01_TransactionMaster.Date,
T01_TransactionMaster.AccountNumber AS T01_Accountnumber
FROM A01_AccountMaster
INNER JOIN T01_TransactionMaster
ON A01_AccountMaster.AccountNumber = T01_TransactionMaster.AccountNumber
WHERE (A01_AccountMaster.Title = 'The')
AND (T01_TransactionMaster.Date between '01/01/2010' and '09/12/2012')
ORDER BY AccountNumber;