i am developing a bank application in vb 6 and sql server.
i have 2 tables. one is LoanPayment and Other is LoanReceived
when bank gives any loan to customer it is saved in LoanPayment Table with its name and deal no{deal no changes from customer to customer i.e suppose Mr. XYZ has taken 3 loans [Rs.5000 , Rs.10000, Rs. 25000]from bank then his deal no r 1 for 5000 and 2 for 10000, and 3 for 25000] and Mr. LML has taken only 2 loans[Rs.15000, Rs.35000] from bank then his deal no 1 for 15000 and 2 for 35000 i. e deal r changes from customer to customer}
when customer return his loan then it is saved in LoanReceived Table with respective deal no and return amount.{if Mr. XYZ return Rs.250 against his deal no 1 then it is stores as name-xyz, deal no-1 and principlepaid-Rs.250}
now i want to find those name who do have any single entry in LoanReceived Table i.e those deal of clients against which client do not paid any single amount.
i used not in but i cant write it properly.
so plz help in writting this query.
i have 2 tables. one is LoanPayment and Other is LoanReceived
when bank gives any loan to customer it is saved in LoanPayment Table with its name and deal no{deal no changes from customer to customer i.e suppose Mr. XYZ has taken 3 loans [Rs.5000 , Rs.10000, Rs. 25000]from bank then his deal no r 1 for 5000 and 2 for 10000, and 3 for 25000] and Mr. LML has taken only 2 loans[Rs.15000, Rs.35000] from bank then his deal no 1 for 15000 and 2 for 35000 i. e deal r changes from customer to customer}
when customer return his loan then it is saved in LoanReceived Table with respective deal no and return amount.{if Mr. XYZ return Rs.250 against his deal no 1 then it is stores as name-xyz, deal no-1 and principlepaid-Rs.250}
now i want to find those name who do have any single entry in LoanReceived Table i.e those deal of clients against which client do not paid any single amount.
i used not in but i cant write it properly.
so plz help in writting this query.