dbTalk Databases Forums  

Query help

comp.databases.olap comp.databases.olap


Discuss Query help in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lee.mre@gmail.com
 
Posts: n/a

Default Query help - 04-26-2007 , 03:09 PM






I'm very new to MDX querying, so please bear with me.

I am working on tracking hardware/software assets within my company.


I have a fact table schema with the following:


Date, ReportingId, MachineId, SoftwareId
4/19/2007 526 3 1
4/19/2007 526 3 2
4/19/2007 526 3 3
4/20/2007 527 1 1
4/20/2007 527 1 2
4/20/2007 527 1 3
4/27/2007 528 1 1
4/27/2007 528 1 2
4/27/2007 528 1 3
4/27/2007 529 2 1
4/27/2007 529 2 2
4/27/2007 529 2 3
4/27/2007 529 2 4
4/27/2007 530 1 1
4/27/2007 530 1 3


All machines are scanned at some interval, techs can force a scan at
any time (so there may be more than 1 entry for a machine per day;
that's why they are using a reportingid; it represents a scanning
session I guess)


The idea here is to track all the software installed on a particular
machine, at a specific point in time. So if I wanted to report on
machines between 4/20 and 4/27, I would need to see data from
reportingId 529 and 530, but not from scan 526 because it is outside
the date range.


How would I query for this? I know how to query for this in SQL, but
I am at a real loss here. The cube design is not set in stone and is
fairly flexable at this point.


Also eventually, I need to report on top vendors, software growth,
etc
to negotiate pricing. So if there is anything I should keep in mind,
any help would be appeciated.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.