I am not sure how to do this in a BAQ. Any help would be appreciated. The below returns me the duplicate part numbers within the same Assembly.
How do I create the Count(*) and the Having statement?
SELECT
[JobNum],[AssemblySeq], [PartNum], [QtyPer], COUNT()
FROM
Erp.JobMtl
Where [Company] = 300 AND [JobNum] = ‘085649’
GROUP BY
[JobNum], [AssemblySeq], [PartNum], [QtyPer]
HAVING
COUNT() > 1