I have two tables ... a table table1 with KampanjID, Number and Date attributes.
There kampanjID and Date is a composite key.
Now I want to show TOTAL Number of per day.
I use this SQL question
SELECT DISTINCT rKam.Datum, (SELECT SUM (Shipping) FROM rKam)
As shown each date once. BUT in the column where the number of the day, the TOTAL number of ALL days.
Do I use this code instead:
SELECT DISTINCT rKam.Datum, Delivery
As shown dates as many times as there are entries for that date. (There may be various campaigns on the same date).
I can really bet on this ...
Anyone have advice how to solve so that the dates shown only once and in the second column so Plussa all the numbers together for that day REGARDLESS what the campaign.
Or, you can not with the premise that I have a composite key in this table?
grateful for the quick reply :-)
EDIT: Clarification ... what I want to do is turn up all the dates are the same ... Then add up all the numbers on THESE lines and present this in the date's number ...
O then so on the next date.