Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

substract dates 2

Status
Not open for further replies.

GusRam

IS-IT--Management
Jul 21, 2003
1
0
0
US
Example: endtraveldate - starttraveldate should give me the number of nights,
I need to know how to create a number of nights fact.
The dates are datetime datatypes.

Thanks
 
Create a metric using an applysimple.

This is and example for SQL Server your DB may be different

Sum(ApplySimple("datediff(dd,#0,#1)", [starttraveldate], [endtraveldate])) {~}
 
Hey kpescatore,
I was wondering if there was any resource which would describe more elaborately how to use the applysimple, applyagg etc where I could refer to in relation to SQL SERVER 2000 that is.

Thanks!!
 
Hi asudevil,
I don't know of any resource currently. If I find one I will post it.

Sorry

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top