J Joy83 Member Local time Today, 02:44 Joined Jan 9, 2020 Messages 116 Apr 28, 2022 #1 Hi How to add one more condition to the following query I want to say where name=‘abc’ SELECT Name, COUNT(ID) AS Duplicate FROM Products GROUP BY Name,ID HAVING COUNT(ID)>1
Hi How to add one more condition to the following query I want to say where name=‘abc’ SELECT Name, COUNT(ID) AS Duplicate FROM Products GROUP BY Name,ID HAVING COUNT(ID)>1
theDBguy I’m here to help Staff member Local time Today, 02:44 Joined Oct 29, 2018 Messages 22,564 Apr 28, 2022 #2 SELECT Name, COUNT(ID) AS Duplicate FROM Products WHERE [NAME]='ABC' GROUP BY Name,ID HAVING COUNT(ID)>1
SELECT Name, COUNT(ID) AS Duplicate FROM Products WHERE [NAME]='ABC' GROUP BY Name,ID HAVING COUNT(ID)>1
theDBguy I’m here to help Staff member Local time Today, 02:44 Joined Oct 29, 2018 Messages 22,564 Apr 28, 2022 #4 Joy83 said: Thanks Click to expand... Hope it works...