Order by a group
Posted: Mon Dec 17, 2007 1:35 pm
I have a datatable that has all the expirations amounts of all the customers.
In each row (representing an expiration) i have the name of the customer and the amount of the debt to pay for that single expiration.
I need a report where i have the total expirations for each customers, ordered by total expirations value.
Example:
Original datatable:
Mr Smith 100,00
Mr Smith 42,00
Mr Ross 30,00
Mr Ross 80,00
Mr White 400,00
Mr White 10,00
I need this final result:
- Report ordered for descending total expirations amounts:
Mr White: Tot. 410,00
Mr Smith: Tot. 142,00
Mr Ross: Tot. 110,00
How can i do this?
Thanks.
In each row (representing an expiration) i have the name of the customer and the amount of the debt to pay for that single expiration.
I need a report where i have the total expirations for each customers, ordered by total expirations value.
Example:
Original datatable:
Mr Smith 100,00
Mr Smith 42,00
Mr Ross 30,00
Mr Ross 80,00
Mr White 400,00
Mr White 10,00
I need this final result:
- Report ordered for descending total expirations amounts:
Mr White: Tot. 410,00
Mr Smith: Tot. 142,00
Mr Ross: Tot. 110,00
How can i do this?
Thanks.