So far i have this:create or replace procedure fixture_update_points(p_fixt_id in varchar2) isupdate table_team tbegin set points = points + (select case when t.team_id = team_id_h then points_h when t.team_id = team_id_a then points_a else 0 end points from (select h.team_id team_id_h, case when h.goals_number > a.goals_number then 6 when h.goals_number = a.goals_number then 4 else 0 end points_h, a.team_id team_id_a, case when a.goals_number > h.goals_number then 6 when a.goals_number = h.goals_number then 4 else 0 end points_h, from (select m.team_id,f.goals_number from fixture_tbl m,table_team t,fixture_team f where m.fixt_id = :p_fixt_id and m.home_team = t.team_name and t.team_id = f.team_id ) h, (select m.team_id,f.goals_number from fixture_tbl m,table_team t,fixture_team f where m.fixt_id = :p_fixt_id and m.away_team = t.team_name and t.team_id = f.team_id ) a ) ) where team_name in (select home_team,away_team from fixture_tbl where fixt_id = :p_fixt_id )
But I keep getting this error:PROCEDURE FIXTURE_UPDATE_POINTS compiledErrors: check compiler log2/1 PLS-00103: Encountered the symbol "UPDATE" when expecting one of the following: begin function package pragma procedure subtype type use <an identifier> <a double-quoted delimited-identifier> form current cursor external languagePROCEDURE FIXTURE_UPDATE_POINTS compiledErrors: check compiler log