Hi,I have writte a Query to compare two table and return me the matched values, its been working on wel, until i received a valu that not exactly the same in both table, for e.g: In my first table the value of doc_no is A33596 and in the second the value of invoicenum is 33596. my code is:select client_no,name_client,debtor_no,name_debtor,doc_no,doc_date,doc_amount,doc_bal,apwhst from opditminner join client on opditm.client_no=client.code_clientinner join debtor on opditm.debtor_no=debtor.code_debtorwhere exists( select invoicenum,rem_amount,rem_date from tempmatchtablewhere invoicenum=opditm.doc_no and rem_amount=opditm.doc_bal and rem_date=opditm.doc_date and opditm.doctype in (1,21) and opditm.apwhst<>21)
i have tried to use "like" instead of "Equal"(=) (bold) but no result is displayed and i am sure the values exists.Please help.regards,Amit