Im trying to do a fairly simple update where i have to join two tables, and I keep getting the error
"The column prefix event2 does not match with a table name or alias used in the query"
I know I just have a problem with the syntax of the query, and would appreciate any advice.. Here is the code I am trying to use:
"The column prefix event2 does not match with a table name or alias used in the query"
I know I just have a problem with the syntax of the query, and would appreciate any advice.. Here is the code I am trying to use:
Code:
select e.eventid,e.event,e.year,et.eventid,et.time
from event2 as e inner join eventtimes as et
on e.eventid = et.eventid
update eventtimes
set eventtimes.time = '02:00:00PM'
where event2.year = '2005' and event2.event like 'KM%' and eventtimes.eventid = 9017