|
| |
|
|
Bnugent
Posts: 257 From: Tampa Florida Tampa, FL USA Status: offline
|
Is this possible... - 1/11/2008 16:21:17
Here is my query which is pretty straight forward: SELECT convert(numeric(19,0),SUM(SUBTOTAL)) AS TOTAL FROM SOP30200 WHERE Year(DOCDATE) = 2008 And Month(DOCDATE) = 1 AND SOPTYPE=3 AND CUSTNMBR LIKE 'alston' Pulling directly from SQL d'base using DRW on spooky diet... How would I run that similar query, but have it format results based on where we woudl end up for the month (i.e., forecast)... Exmaple, today is the 11, their are 31 days in January, there fore we are 35% done with the month... so my original query above shows me that sales so far this month are for example, $1000...that would mean we are on pace for sales of approx 1538.5 (1000 divided by .65 remaining days of year). Does this make sense? I want to calculate in my query, current date (11) divide by the total number of days in the current month) and divide that from my SUBTOTAL above? Is this doable? If so how?
_____________________________
Brian---
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|