How to find out duplicate records from multiple tables in MS Access based on month and the below columns ?
Name, Text, Description, TestDescription
select [table1].[Name], [table1].[Text], [table1].[Description], [table1].[TestDescription]
From [table1]
UNION ALL
select [table2].[Name], [table2].[Text], [table2].[Description], [table2].[TestDescription]
from [table2]
WHERE Table1.month IN ("April","May") and Table2.month IN ("April","May")
group by [table1].[Name], [table1].[Text], [table1].[Description], [table1].[TestDescription]
having count(*) > 1;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…