I'm inikiting my life in the Oracle world and I'm going through a boring problem, but I hope they can help me.
I am developing a script where there is a column in a table that I can not do the update.
In this column, the Sumator of items sold by all sellers of a particular item should be stored, but when I execute the error
ORA-01427: single-row subquery returnsmore then une row
follow the code:
UPDATE vendas SET unidades =(
SELECT
NVL(vend1,0)+NVL(vend2,0)+NVL(vend3,0)+NVL(vend4,0)+NVL(vend5,0)+NVL(vend6,0)+NVL(vend7,0)+NVL(vend8,0)
FROM
vendas);
Thanks there for the attention! : Wink: