with SQLITE I have 2 tables Employee (id,name,phone,taskname) and Tasks (id, name,date,Employee_id)
I want to add a trigger on After update of a row to get the taskname from the tasks table where employe_id is the same. I think that this will need to use SELECT INTO NEW.taskname but I can't seem to get it right. I tried.
CREATE TRIGGER "gettaskname"
AFTER UPDATE
ON "Employee"
BEGIN
SELECT Tasks.name FROM Tasks INTO NEW.task_name WHERE NEW.id = Tasks.Employee_id;
END;
I am getting a syntax error