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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running total help

Status
Not open for further replies.

deeya

MIS
Sep 18, 2006
78
GB
Hello all,

CR10 SQL SERVER.

I have two groups Server Name and Trenddatetime.

What i want to do is calculate the change in diskspace day by day result will be the third column. Now the hard part: The next thing I want to do is calculate how long it will take by average(result) for the memory to run out. i.e disk space will run out 28/12/2007.

172.20.4.99 result
21/12/2006 219,386 80
20/12/2006 219,466 93
19/12/2006 219,559 83
18/12/2006 219,642 0

Thanks in advance.
 
Divide remaining disk-space by days. Call that @DaysLeft

Now add this to the current date, Currentdate + @DaysLeft.

For more complex adds, DateAdd can be used, but a simple addition to the current date is assumed to be whole days.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
sorry you missed the part of the third column how do i calculate that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top