Autor Beitrag
Killi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Di 29.06.04 20:31 
Hi,


ich hab folgendes Problem:

In einer DB stehen Artikel, die noch nicht zusammengerechnet worden sind, wie z.Bsp:

"0001", "4", "5,50"
"0001", "2", "1,80"


Felder:

ArtikelNr, Anzahl, Betrag



Nun will ich in meiner DBGrid diesen Artikel nur EINMAL anzeigen lassen mit Menge = 6 und Betrag = 7,30!

Ich kriegs nicht hin - hat mir jmd. einen BspCode?

_________________
----
Life is hard and then you die
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 29.06.04 23:05 
ausblenden Quelltext
1:
2:
3:
SELECT ArtikelNr, SUM(Anzahl), SUM(Betrag)
FROM <name>
GROUP BY ArtikelNr

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!