Question
Subquery returning mulitple rows error
Hi All,
While trying to execute this statement in Postgres,
update customer_master set locationid = (select p.locationid from location_info l,customer_location cl where c.locationid=cl.locationid)
I get this error,
ERROR: more than one row returned by a subquery used as an expression
Any Ideas?...
While trying to execute this statement in Postgres,
update customer_master set locationid = (select p.locationid from location_info l,customer_location cl where c.locationid=cl.locationid)
I get this error,
ERROR: more than one row returned by a subquery used as an expression
Any Ideas?...