SQL> select
mcode, mname, avg(cmark) from result, module
2 where result.mcode = module.mcode
3 order by cmark desc;
Column mcode (or all of them) exists in both of the tables, and it is unknown which one of those you want to select. Obviously, the result will be the same, but you have to specify the table (or its alias), such as
PHP Code:
select r.mcode, m.mname, avg(r.cmark)
from result r, module m
where r.mcode = m.mcode
order by r.cmark desc;