I can do this:
SELECT team.name, state.name
FROM team
INNER JOIN state
ON team.state_id = state.id;
Now, say Texas changes their name to Saxet so the Houston Texans change their name to the Houston Saxetians.
Can I do something like this:
UPDATE
(team INNER JOIN state ON team.state_id = state.id)
SET
state.name = "Saxet",
team.name = "Saxetians";
My main question is - can this be done? I'm pretty sure though that it cannot be done because I searched around and couldn't find anything. If it in fact cannot be done, could you please explain any insight as to why? Does this feature somehow oppose the fundamentals of SQL in a way that I don't grasp?
Thank you!