Consider these tables
student
id int not null auto_increment, primary key (id),
school_year_id int not null,
unique_key varchar(16) not null
interns
id int not null auto_increment, primary key (id),
enrollment_status varchar(40) not null,
unique_key varchar(16) not null
school_year
id int not null auto_increment, primary key (id),
school_year_name varchar(40) null
OK what I want to do is extremely easy, but beyond my ability to write this (I need a DBA!)
Foreach record in student I want to put in the field column school_year_id the value of school_year.id where student.unique_key = interns.unique_key AND upper(interns.enrollment_status) = upper(school_year.school_year_name).
I hope that makes sense, but that's as clear as I can do it w/o a whiteboard to show you exactly what I want.
Sorry, I simply can't do something like this, I've tried for weeks to no avail.
Thanx
Phil