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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with an update statement

Status
Not open for further replies.

mmorala

MIS
Aug 18, 2003
14
US
I have two tables, ACCOUNT & USERINFO. They are linked by ACCOUNT.ACCOUNTMANAGERID & USERINFO.USERID. I am trying to replace blank fields in ACCOUNT.CATEGORY with "Call Report" where USERINFO.TITLE = 'Manufacturers Rep'. How can I do this?

Thanks,
Michael
 
Try this:

UPDATE ACCOUNT
SET ACCOUNT.CATEGORY = 'CALL REPORT'
WHERE ACCOUNT.ACCOUNTMANAGERID = USERINFO.USERID
AND USERINFO.TITLE = 'Manufacturers Rep'

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top