473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Charts

rcollins
234 100+
I am new at charts. I want to make a chart that gives me the amount of incidents per month. Shouldn't be that hard but at the moment the best I get is totaling all of the month values for each year all together. For instance, December has the count of all december incidents from 01 to 08. I want to also put a start and end date to these. Please help to point me in the right direction
Mar 11 '08 #1
1 928
Stewart Ross
2,545 Expert Mod 2GB
I am new at charts. I want to make a chart that gives me the amount of incidents per month. Shouldn't be that hard but at the moment the best I get is totaling all of the month values for each year all together. For instance, December has the count of all december incidents from 01 to 08. I want to also put a start and end date to these. Please help to point me in the right direction
Hi. You need to add the year as a Group By clause in your base query. You can add criteria to your query to select dates between particular dates you are interested in.

General SQL for this is along the lines of
Expand|Select|Wrap|Line Numbers
  1. SELECT [yourtable].[year], [yourtable].[month], Count([yourtable].[month]) AS N
  2. FROM [yourtable] 
  3. WHERE ([yourtable].[rowdate] between #somedate# AND #anotherdate#
  4. GROUP BY [yourtable].[year], [yourtable].[month]
  5. ORDER BY [yourtable].[year], [yourtable].[month];
-Stewart
Mar 12 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: MT | last post by:
Hello Everyone: I would like to make some charts based on data I am retrieving from my DB. The charts should be things like bar-charts, pie-charts, line-graphs etc. Th charts can be in any...
4
by: Paul Gardella | last post by:
Folks, Does anyone know of a Python module for building organization charts? I've looked at gdchart and JPGraph, but neither of them do org charts, as far as I can tell. Seems it can be done...
1
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have...
5
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have...
0
by: STeve | last post by:
Hey guys, I just want to thank you guys in advance. I am currently having problems displaying some dynamically generated charts using office web components. If I am an admin on the server, I...
0
by: mscir | last post by:
Date: Thu, 08 Jul 2004 17:02:27 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <10ero4l3kp2qa65@corp.supernews.com> Reply-To: mscir@usa.com User-Agent: Mozilla/5.0...
3
by: vanisathish | last post by:
Hi All, Is there a way to draw charts from SQL Server Data using ASP.?Is it possible to use the SQL Reporting Services using ASp
2
by: Gargamil | last post by:
How can I display a chart with more than 6 columns of data? Are there third party applications? Can someone point me in the right direction here?? g
4
by: Wayne | last post by:
I have posted this problem a couple of times over the last few years but have been unable to find a solution that works. Sometimes charts in reports will display showing the design data instead of...
6
by: chaelon | last post by:
I'm trying to gather info on whether VB.NET would be right for my application needs. I need to create basic charts, such as line charts, bar charts, pie charts, etc., with maybe regression lines...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.