Sample Data
table a
Name, scheduleDate, codeyear
jill, 5/12/11, U
jill, 5/13/11, U
john, 11/16/10, U
Jill, 5/9/10, T
table b
name, signdate, codeyear, status
Jill, 2/14/11, VW, renewal
John, 11/19/09, V, renewal
Jill, 2/1/10, U, Renewal
Codeyear for table a is related to the scheduleDate but...