K
kay
Table: Outstanding
Age LoanNum Doc Status TP Status RET status
20 00123 '100' '120' '101'
30 00277 '104' '100' '120'
--------------
i have around 50000 such rows in my table.
i have tried to solve this but did not get success, its a bit complecated.
Question1: in about table i want to write a query to count loan number by
Age for each code -'100' ,both together'104 and 120' ,'101'.
so for eg. In above table I have loan count for '100' by age is
Age for100 Loancount for (104 & 120)LoanCount
20 1 1
30 1 2
Age LoanNum Doc Status TP Status RET status
20 00123 '100' '120' '101'
30 00277 '104' '100' '120'
--------------
i have around 50000 such rows in my table.
i have tried to solve this but did not get success, its a bit complecated.
Question1: in about table i want to write a query to count loan number by
Age for each code -'100' ,both together'104 and 120' ,'101'.
so for eg. In above table I have loan count for '100' by age is
Age for100 Loancount for (104 & 120)LoanCount
20 1 1
30 1 2