I have a table students where I created column average_grades and I also have a table grades with columns G_id, g_grades, g_course, g_student, g_data.
I want to add all average grades to column in average_grades in students table have same errors my query is
insert into students (average_grades)
select avg(grades.g_grade)
from grades
and my error
Error starting at line : 7 in command - insert into students (average_grades) select avg(grades.g_grade) from grades
Error report - SQL Error: ORA-01400: невозможно вставить NULL в ("DB_141ADM036"."STUDENTS"."ST_ID") 01400. 00000 - "cannot insert NULL into (%s)"
*Cause: An attempt was made to insert NULL into previously listed objects.
*Action: These objects cannot accept NULL values.
EDIT: translation from Russian:
ORA-01400: can not insert a NULL ("DB_141ADM036". "STUDENTS". "ST_ID")