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!

HELP !!!! Need to update table with ref. to another table.

Status
Not open for further replies.

Neozero

MIS
Jul 7, 2000
49
0
0
US
I am tryint to update a table and I am having to ref. another table.&nbsp;&nbsp;I keep getting an error.&nbsp;&nbsp;&nbsp;How do I do this ?&nbsp;&nbsp;&nbsp;The statement that I am using is :<br><br><br>UPDATE Ejob<br>SET<br>EjSupervisor = EbLastName + &quot;,&quot; + &quot; &quot; + EbFirstName<br>WHERE <br>EjSupervisorFlxIDEb = EbFlxID
 
You have not used from clause to indicate your ref table.<br><br>Here is an example. I assumed that Ebase is the ref table containing EbFlxId.<br><br><br><br>UPDATE Ejob<br>SET<br>EjSupervisor = EbLastName + &quot;,&quot; + &quot; &quot; + EbFirstName<br>FROM Ejob, Ebase<br>WHERE <br>EjSupervisorFlxIDEb = EbFlxID <br><br><br>Regards<br><br>Subramanian K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top