The table name is \"OrderDetails\" and columns are given below:
OrderDetailID || ProductID || ProductName || OrderQuantity
I\'m trying to s
I use this trick for to group by one column when I have a multiple columns selection:
SELECT MAX(id) AS id, Nume, MAX(intrare) AS intrare, MAX(iesire) AS iesire, MAX(intrare-iesire) AS stoc, MAX(data) AS data FROM Produse GROUP BY Nume ORDER BY Nume
This works.