I’m trying to update one table using fields from another:
Update x
From y
Set 1=y.1, 2=y.2, 3=y.3
Where y.4="*Cash*" and y.5="*Use*"
Is this possible? Or do I have to use an Inner Join or a Subquery? I keep getting an error in my Update Syntax: “Missing or Invalid Option.”
You seem to be asking for something like
Normally, there would be some additional condition that relates the tables
xandy. If the query againstyreturns a single row and you want to update every row ofxwith that single row of data, that is not necessary. But normally, you’d have something likeIf you only want to update the rows in
xthat have a matching row iny