My中正确的重复数据删除语法

时间:2017-10-19 15:53:47

标签: mysql navicat

我在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';

0 个答案:

没有答案