PL/SQL (MOSC)

MOSC Banner

ORA-01427: single-row subquery returns more than one row

edited Apr 27, 2015 9:39AM in PL/SQL (MOSC) 4 commentsAnswered ✓

Hi all,

update invmast im set netcost=(select sum(nvl(st.tot_cost,0))

      FROM INVMAST im, Saletran st

      Where im.sale_id = st.sale_id

      and   im.location = '01'

      and st.type='INP' group by st.sale_id,im.location,st.type)

after executing update query

ORA-01427: single-row subquery returns more than one row

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center