私はSQLを初めて使用し、次のことを実行しようとしています。
update the salary of employees with their department avg salary.
ここでSQLコマンドを試しています。
私が試しているコマンドは次のとおりです。
update emp set sal = select avg(sal) from emp;
しかし、次のようなエラーが発生します。
ORA-00936: missing expression : update emp set sal = select avg(sal) from emp
どこで間違いを犯しているのですか?
前もって感謝します。