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

update and inner join - sintax question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
update file1 inner join file2
on file1.field = file2.samefield
set file1.field2 = file2.samefield2
where file1.field2 = ' YES '
I've got syntax problem.
Any suugestion would be appreciate.
 

Try the following.

Update file1
Set field2 = file2.samefield2
From file1 inner join file2
On file1.field = file2.samefield
Where file1.field2 = ' YES ' Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
I think you need a SELECT in the subquery:

Update file1
Set field2 = SELECT file2.samefield2
From file1 inner join file2
On file1.field = file2.samefield
Where file1.field2 = ' YES ';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top