|
KinRookie
Starting Member
1 Posts |
Posted - 12/10/2012 : 04:02:36
|
Hello all, i am try to group two records into one by using count distinct and sum.
There is a table "INV" with columns "INV_NO", "INV_PRO", "INV_QTY", "INV_AMT", "INV_DATE", "INV_CUS"
And there is a customer brought 5 products and it breaks into two invoice "INV10122012001", "INV10122012002", and it shows like this:
INV_NO INV_PRO INV_QTY INV_AMT INV_DATE INV_CUS INV10122012001 A 3 20 10/12/2012 JACK INV10122012002 B 2 10 10/12/2012 JACK
All i want to group like this by using count and sum: INV_NO INV_QTY INV_AMT INV_DATE INV_CUS 2 5 30 10/12/2012 JACK
THANKS |
|