我正在运行以下存储过程,并且有一个类和日期表的连接。但是,在七个测试记录中,我在结果中得到一个重复记录:
SELECT DISTINCT dbo.Classes.Title, dbo.Classes.ClassTime, dbo.Classes.Category,
dbo.Classes.SubCategory1, dbo.Classes.[Description],dbo.Classes.ContactName,
dbo.Classes.ContactPhone, dbo.Classes.Location, dbo.Classes.Room,
dbo.Dates.StartDate
FROM dbo.Classes INNER JOIN dbo.Dates ON dbo.Classes.ClassID = dbo.Dates.ClassID
ORDER BY StartDate DESC