insert into students_learn_subjects(student_id,subject_id)
select max(id) from students, subject_id from classes_have_subjects where class_id = 5)
I want to insert values in table but retrieve these values from other table. With this query i am getting this error. The second select statement return multiple values but the first one only one
ERROR: syntax error at or near "from"
LINE 2: select max(id) from students, subject_id from classes_have_s...
JOINsyntax? - Gordon Linoff