neronikita
Technical User
Good morning!
I'm not sure if this is the best place to post this or not, but I'm using Crystal Reports 2008 with Sql server 2008 express, so I thought I would start here.
I have a database that is tracking fuel mpg, idle time, trip time, mileage, etc. This information is pulled from our trucks using a laptop connection. Some of the newer trucks calculate more than others, meaning I have to do the manual calculations for older trucks.
What I need to do is create averages by month of the mpg and idle time. For the older trucks to get the idle time I need to subtract the lowest mileage for the month from the highest for that month. Same with the trip time. Then I need to divide the trip mileage by the trip time. I have figured out the formulas, but it's doing it for all the entries, not just the month. I also need it by truck number.
My first question is, should I be doing something in a stored procedure before doing anything in crystal, or is there a way to do all of this in crystal?
Please let me know if I haven't explained clearly or if you need a list of all the fields or have any other questions.
Thanks in advance,
Di
I'm not sure if this is the best place to post this or not, but I'm using Crystal Reports 2008 with Sql server 2008 express, so I thought I would start here.
I have a database that is tracking fuel mpg, idle time, trip time, mileage, etc. This information is pulled from our trucks using a laptop connection. Some of the newer trucks calculate more than others, meaning I have to do the manual calculations for older trucks.
What I need to do is create averages by month of the mpg and idle time. For the older trucks to get the idle time I need to subtract the lowest mileage for the month from the highest for that month. Same with the trip time. Then I need to divide the trip mileage by the trip time. I have figured out the formulas, but it's doing it for all the entries, not just the month. I also need it by truck number.
My first question is, should I be doing something in a stored procedure before doing anything in crystal, or is there a way to do all of this in crystal?
Please let me know if I haven't explained clearly or if you need a list of all the fields or have any other questions.
Thanks in advance,
Di