Solved

Can you group on a graph using different dataSets?

Posted on 2013-02-06
3
402 Views
Last Modified: 2013-02-21
Hi Experts, I have an unusual problem where I need to create a line graph comparing different dates of data. Problem is that each date is retrieved using a different dataset.  The reason for this is that the "where" clause I use goes via a special odbc diver to the database. So I can only use one date retrieval per dataset.  
At the moment I am using the first dataset to retrieve the first data points. I then use the second, third etc data points using the lookup feature.
This works fine for plotting each DataSet information as a line graph Horizontally E.g. The line represents 1 DataSet of information.  However what I want to do is have each dataSet grouped long the X axis, so one line on the graph would represent many dataset data points.
I hope that makes sense. Firstly do you think this is possible and secondly how would I do this. Please let me know if I need to explain further.
0
Comment
Question by:bruskhickory
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Expert Comment

by:rajeevnandanmishra
ID: 38863440
Hi,
How you are creating the datasets? I mean isn't it possible to create a single dataset in a procedure (using union or temp tables) by querying multiple times?
In that way you will get a single output dataset that further can be represented in the graph.

You can use opendatasource/ openrowset methods of mssql also to fetch dataset using odbc drivers OPENDATASOURCE
0
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
ID: 38864790
If you already have the data retrieved the easiest way to process it will be to merge the tables. (I guess you have the same structure). Check DataTable.Merge Method:
http://msdn.microsoft.com/en-us/library/wkk7s5zk.aspx
0
 

Author Closing Comment

by:bruskhickory
ID: 38916384
Great just information what I was looking for. I would have used 'union' to join different tables but I am unable to use this in the sql script do the odbc driver I am using.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question