thank you,
i still haven't got my result...
e.g
book borrowed-> code->01,02,03 //(borrow table)
book return -> code->01,03 //(return table)
i want to get 02 since it's not returned (the number which is not in book return column)
the table :
borrow table
id1 -mem_id -code
1 - - m1 - - 01
1 - - m1 - - 02
1 - - m1 - - 03
return table
id3 -id1 - code
3 1 01
3 1 03
// id1 on both table as borrow_id // mem_id on b.table is member id // id3 is other id...
so far i tried many queries, i got weird results as they compare it 'like' record by record instead of just 'collect the data on both table and see what code absent on the other table
. using my wrong query , i will get code column -> 03,02,02,01
this because 03 is compared with 01 --> true (say it's not same or not in)
then 02 is compared with 01--> true , next 02 is compared with 03 --> true
last 01 is compared with 03 -->true...
seem they compared borrow.code with all return.code one by one...
, sorry if i don't get you understand with my problm above... ,
please help me, thank you...