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!

SQL help needed

Status
Not open for further replies.

wmikeh

Programmer
Mar 15, 2005
11
0
0
US
Hi everyone... Here is a problem i've been working over today to no avail... I have 2 tables - the first table "A" contains 1 field which I will call 'item' the second table "B" contains 2 fields 'item' and 'OnOrder'.
I need a sql statement that will update the OnOrder Field from a user defined function for every item that matches an item in table "A". I thought about using
UPDATE B Set B.OnOrder = dbo.functionname(a.item) from B, A where b.item = a.item but this doens't work.. hehe

any suggestions?
 
Oops.. i spoke too soon... that query did work! Sorry everyone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top