Hi all,
I am working on a Chart showing the activity per customer for the last 12 months + the current month (I work in a technical support team).
Basically, my SQL query is providing me with the right result most of the time. It looks like this:
Sep 10 185 44 96 22
Oct 10 330 96 154 46
Nov 10 365 114 202 46
Dec 10 220 63 126 23
Jan 11 335 125 184 53
Feb 11 283 72 222 32
Mar 11 357 81 214 52
Apr 11 167 20 196 17
May 11 294 64 218 26
Jun 11 288 71 202 34
Jul 11 365 166 200 65
Aug 11 301 114 180 72
Sep 11 206 79 129 56
It works fine and my chart is nice.
Now, I need to set the same data per customer (chosen in the user interface).
The SQL Query gives me the following for instance:
Oct 10 1 0 0 NULL
Nov 10 10 6 5 2
Dec 10 1 0 0 NULL
Feb 11 1 1 1 0
May 11 1 0 0 NULL
Jun 11 9 4 4 4
Jul 11 3 0 1 NULL
This particular customer does not call every month.
What I would like to get is as follow, so I can draw my chart.
Sep 10 0 0 0 0
Oct 10 1 0 0 NULL
Nov 10 10 6 5 2
Dec 10 1 0 0 NULL
Jan 11 0 0 0 0
Feb 11 1 1 1 0
Mar 11 0 0 0 0
Apr 11 0 0 0 0
May 11 1 0 0 NULL
Jun 11 9 4 4 4
Jul 11 3 0 1 NULL
Aug 11 0 0 0 0
Sep 11 0 0 0 0
I understand that SQL query won't work for this but I'm wondering if I could use Dataset or something.
I'm stuck here (I'm not really a developer and I'm just learning SQL Queries and Visual Basic for this purpose).
Any ideas?
Let me know. Thanks a lot.