I will re-phrase the problem. If there are multiple entries of VEND in STL_GRP, then first entry should be picked up.
Now, certainly below query will not help me, as internal query returns all the VEND values not just first one. Can you suggest something?
[code=oracle]
UPDATE PARTNER
SET VEND=
(
SELECT DISTINCT STL.VEND
FROM STL_GRP STL, PARTNER PRT
WHERE PRT.PARTNER_CD...
User Profile
Collapse
-
-
Copy all values of a column from one table to another
Hi,
I need to Copy all values of a column from one table to another. Below are the details:
Source: STL_GRP table, VEND column
Destination PARTNER table, VEND column.
I am using the below query which is incorrect:
[code=oracle]
UPDATE PARTNER
SET VEND=
(
SELECT DISTINCT STL.VEND
FROM STL_GRP STL, PARTNER PRT
WHERE PRT.PARTNER_CD = STL.PARTNER_CD
)...
No activity results to display
Show More
Leave a comment: