![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I have a query that returns results like this: Month * * * * * Agent * * Cases Worked ---------------- * ----------- * ----------------------- Sept * * * * * * *Tom * * * * * *5 Sept * * * * * * *John * * * * * 12 Sept * * * * * * *Megan * * * * 6 Oct * * * * * * * Tom * * * * * * 2 Oct * * * * * * * John * * * * * *7 Oct * * * * * * * Megan * * * * 8 Nov * * * * * * * Tom * * * * * *11 Nov * * * * * * * John * * * * * 13 Nov * * * * * * * Megan * * * *16 I am looking to plot this data as a multiple line graph, and would like to change the output to look something like this, but am not having any luck: Agent * * Sept * * Oct * * Nov ---------- * *------- * *------- * ------- Tom * * * * *5 * * * * *2 * * * *11 John * * * * 12 * * * * 7 * * * *13 Megan * * *6 * * * * * 8 * * * *16 This is just a sample output, and the number of months returned or number of agents returned is variable, so for example above we are showing 3 months and 3 agents, but the result set could have 12 months and 5 agents as an example so the query would need to be dynamic to accomidate. Thanks |
#4
| |||
| |||
|
|
On Dec 27, 3:27*pm, master44 <trp... (AT) gmail (DOT) com> wrote: I have a query that returns results like this: Month * * * * * Agent * * Cases Worked ---------------- * ----------- * ----------------------- Sept * * * * * * *Tom * * * * * *5 Sept * * * * * * *John * * * * * 12 Sept * * * * * * *Megan * * * * 6 Oct * * * * * * * Tom * * * * * * 2 Oct * * * * * * * John * * * * * *7 Oct * * * * * * * Megan * * * * 8 Nov * * * * * * * Tom * * * * * *11 Nov * * * * * * * John * * * * * 13 Nov * * * * * * * Megan * * * *16 I am looking to plot this data as a multiple line graph, and would like to change the output to look something like this, but am not having any luck: Agent * * Sept * * Oct * * Nov ---------- * *------- * *------- * ------- Tom * * * * *5 * * * * *2 * * * *11 John * * * * 12 * * * * 7 * * * *13 Megan * * *6 * * * * * 8 * * * *16 This is just a sample output, and the number of months returned or number of agents returned is variable, so for example above we are showing 3 months and 3 agents, but the result set could have 12 months and 5 agents as an example so the query would need to be dynamic to accomidate. Thanks http://lmgtfy.com/?q=pivot+query+sit...tom.oracle.com jg -- @home.com is bogus.http://www.computerweekly.com/Articl...2/CW+-Analyst3... hmmmmmm....- Hide quoted text - - Show quoted text - |
#5
| |||
| |||
|
|
On Dec 27, 6:39*pm, joel garry <joel-ga... (AT) home (DOT) com> wrote: On Dec 27, 3:27*pm, master44 <trp... (AT) gmail (DOT) com> wrote: I have a query that returns results like this: Month * * * * * Agent * * Cases Worked ---------------- * ----------- * ----------------------- Sept * * * * * * *Tom * * * * * *5 Sept * * * * * * *John * * * * * 12 Sept * * * * * * *Megan * * * * 6 Oct * * * * * * * Tom * * * * * * 2 Oct * * * * * * * John * * * * * *7 Oct * * * * * * * Megan * * * * 8 Nov * * * * * * * Tom * * * * * *11 Nov * * * * * * * John * * * * * 13 Nov * * * * * * * Megan * * * *16 I am looking to plot this data as a multiple line graph, and would like to change the output to look something like this, but am not having any luck: Agent * * Sept * * Oct * * Nov ---------- * *------- * *------- * ------- Tom * * * * *5 * * * * *2 * * * *11 John * * * * 12 * * * * 7 * * * *13 Megan * * *6 * * * * * 8 * * * *16 This is just a sample output, and the number of months returned or number of agents returned is variable, so for example above we are showing 3 months and 3 agents, but the result set could have 12 months and 5 agents as an example so the query would need to be dynamic to accomidate. Thanks http://lmgtfy.com/?q=pivot+query+sit...tom.oracle.com jg -- @home.com is bogus.http://www.computerweekly.com/Articl...2/CW+-Analyst3... hmmmmmm....- Hide quoted text - - Show quoted text - Thanks, I have spent many hours with different Google searches and browsing the AskTom site, still not real clear how to make this work. |
#6
| |||
| |||
|
|
I have a query that returns results like this: Month * * * * * Agent * * Cases Worked ---------------- * ----------- * ----------------------- Sept * * * * * * *Tom * * * * * *5 Sept * * * * * * *John * * * * * 12 Sept * * * * * * *Megan * * * * 6 Oct * * * * * * * Tom * * * * * * 2 Oct * * * * * * * John * * * * * *7 Oct * * * * * * * Megan * * * * 8 Nov * * * * * * * Tom * * * * * *11 Nov * * * * * * * John * * * * * 13 Nov * * * * * * * Megan * * * *16 I am looking to plot this data as a multiple line graph, and would like to change the output to look something like this, but am not having any luck: Agent * * Sept * * Oct * * Nov ---------- * *------- * *------- * ------- Tom * * * * *5 * * * * *2 * * * *11 John * * * * 12 * * * * 7 * * * *13 Megan * * *6 * * * * * 8 * * * *16 This is just a sample output, and the number of months returned or number of agents returned is variable, so for example above we are showing 3 months and 3 agents, but the result set could have 12 months and 5 agents as an example so the query would need to be dynamic to accomidate. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |