Hi,
I'm just starting my SQL journey, it's all very foreign so be kind.
In our accounting system there is an events module that triggers particular rules. I'm attempting to create a trigger where when a purchase order is entered with the same @custorderno (po number) it triggers the alert.
any help would be very much appreciated.
SELECT @CUSTORDERNO
GROUP BY @CUSTORDERNO
HAVING COUNT (*) > 1