Database Strategy for Charting

时间:2015-06-30 13:50:47

标签: sql-server database-design

I have a database that holds events from my application and these tables will be queried later on for charting purposes.

My table is denormalized, i.e.:

EventTable:
-EventId
-UserId
-UserName
-EventType
-DataTime
-CompanyId
-CompanyName

As it is going to be used for charting, I will be aggregating/pivoting/etc a lot.

Currently everything is being stored in SQL Server.

I would like to know if you guys have any suggestion to what I should be using to facilitate the data extraction from this table.

Sorry if this is not clear enough as english is not my native language.

UPDATE:

I will be creating the charts myself on a web application. My plan is to query the database using Stored Procedures and generate the chart using a javascript framework like Kendo UI.

Some of the queries that I'll be performing are:

  • 'Quantity of Events' per 'Event Type' each Company had during a period
  • Distribution of 'Events Type' a particular Company had during a period

0 个答案:

没有答案