Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update statement with multiple tables

Status
Not open for further replies.

pl1101

Programmer
Dec 5, 2009
46
0
0
Hello, I have need help in modifying an update statement. I am bringing back a number of rows with my sql, but when I add the update piece it updates less rows.


-- update APPLICATION
--set PRIMARY_PARAM ='Something Special' (800 rows)
where app_id in
(select A.app_id (820 Rows)
from APPLICATION A
inner join CBT_CPNT_MOD B
on A.APP_ID = B.APP_ID
inner join PA_CPNT C
on B.CPNT_ID = C.CPNT_ID
and B.CPNT_TYP_ID = C.CPNT_TYP_ID
and B.REV_DTE = C.REV_DTE
where C.DMN_ID = '001'
and SUBSTR(A.PRIMARY_PARAM, 1, 14) = ' ;

What would cause the difference in rows and how can I fix this?

Please help!
 
I have figured it out... I have a duplicate problem. This can be deleted...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top