Thank you simon for replying.... anyway, here's the code...
select temp.stud_no as stud_no, guard.g_rel as relation, guard.g_assist as g_assis, guard.g_add as g_add from temp left join guard on temp.stud_no = guard.stud_no
UNION select temp.stud_no as stud_no, idendata.spouse as spouse, idendata.numchild asnumchild, idendata.ages as ages from temp left join idendata on temp.stud_no =idendata.stud_no;
lets say stud_no = 01
obviously this statement will result to two records of 01... one from the table of guard and the second is from the idendata, what if i want these two records be emerged into 1 record?
if i'll add an additional insert statement on the statement above (to try whether it's possible to put the result values from the state-join-union i have to the another table which is temp2 table), as expected, i have encountered a syntax error(missing operator) in query statement....
here's the statement:
insert into temp2
select temp.stud_no as stud_no, guard.g_rel as relation, guard.g_assist as g_assis, guard.g_add as g_add from temp left join guard on temp.stud_no = guard.stud_no
UNION select temp.stud_no as stud_no, idendata.spouse as spouse, idendata.numchild asnumchild, idendata.ages as ages from temp left join idendata on temp.stud_no =idendata.stud_no;
mmmmmmm.... so what's supposed to be the problem?
thanks again....
janice