Hi guys,
sorry to trouble u guys,but can't resist
Actually i have a table (transaction table) in which i have got customer id(can have more than one record with same id) ,acc no, and type (either credit or debit). Now i want to find the balance of the customer by inputting account number
the table will look like
cust id acc no type amount
1010 2323 cr(credit) 2000
1020 2324 dr(debit) 3000
1010 2323 dr 4000
1020 2324 cr 2000
pls help me out