18. November 2009 12:31
SELECT newOrder0.[New_parentaccountidName] As Kunde
,sum(newOrder0.[New_bruttosumme]) As Bruttosumme
,sum(newOrder0.[New_nebenkostensumme]) As Nebenkostensumme
,sum(newOrder0.[New_bruttosumme]+ newOrder0.[New_nebenkostensumme]) Gesamtsumme
FROM (' + @CRM_FilteredNew_Order + ') as newOrder0
GROUP BY newOrder0.[New_parentaccountidName]
ORDER BY Gesamtsumme DESC
18. November 2009 12:52
18. November 2009 12:54
18. November 2009 13:06
18. November 2009 13:07
18. November 2009 13:08