I have the following query in SQL Server:
SELECT
nume, SUM(cantitate) AS Expr1
FROM
bon_produse
WHERE
(bonid = @p1)
GROUP BY
nume
I get the error from title and I cannot figure it out how it is wrong...
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.