我在CustomerID
上滚动,我的输出中有重复项。这里用于MySQL的正确重复数据删除语法是什么?
SELECT a.*, c.CBS, c.Region
FROM account a
JOIN customer c on (a.CustomerID = c.CustomerId)
WHERE (a.ProductID LIKE '%m3%' OR a.ProductID LIKE '%m4%')
AND a.OpenDate < '2015-10-17' AND a.Term = '360' AND c.CBS >= '690'
AND c.Region != 'National';