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

Update Query Returns Nothing

Status
Not open for further replies.

kammsba

MIS
Apr 9, 2003
3
US
I'm not getting any results. No error messages.

UPDATE History
SET DistrictNameID =
(SELECT SchoolDistrictNameID FROM dbo_Client
WHERE ClientHistoryID > 1 AND History.Member_ID = dbo_Client.ClientHistoryID);


This hasn't worked, either:

UPDATE History INNER JOIN dbo_Client ON History.Member_ID=dbo_Client.ClientHistoryID SET History.DistrictNameID = dbo_Client.SchoolDistrictNameID;


Neither has this:

UPDATE History
SET DistrictNameID = dbo_Client.SchoolDistrictNameID
FROM History, dbo_Client
WHERE dbo_Client.ClientHistoryID > 1
AND History.Member_ID = dbo_Client.ClientHistoryID

Any suggestions?
 
Try this, it seems to work when I have this problem

UPDATE History
SET DistrictNameID =
(SELECT SchoolDistrictNameID FROM dbo_Client
WHERE ClientHistoryID > 1 AND History.Member_ID = dbo_Client.ClientHistoryID)
where History.Member_ID in
(select ClientHistoryID from dbo_Client); Dodge20
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top