I keep a log book of things I do to my car like checking air in the tires,
getting gas... What I would like to do is put this stuff in a DB. The
format I have been using on paper is:
Date - Mileage - Category - Description
Jan.8, 2005 - 12345.1 - FUEL - 20.123 gal @ $1.509 (35mpg) [480trip]
Jan.9, 2005 - 12350.5 - TIRE - RF:Flat. Put on spare.
Jan.15, 2005 - 12355.4 - TIRE - LF:35, LR:32, RF:34,RR:32. All>35
First is that each category potentially has a different set of fields from
others. Most would be just a text description, but others like the FUEL, I
would like to enter the Gallons, the Trip & the Price per gallon & have the
DB calculate the miles per gallon.
Another problem comes from for example the TIRE category where most of the
time I put in the pressure before adding air & then what I aired them up
to, as in that Jan.15 entry above, but when I buy new tires or have a flat
the format for that category will need to change.
Can this reasonably be done with a MySQL DB or should I write a C++
program to do it?
Thanks,
Bill
getting gas... What I would like to do is put this stuff in a DB. The
format I have been using on paper is:
Date - Mileage - Category - Description
Jan.8, 2005 - 12345.1 - FUEL - 20.123 gal @ $1.509 (35mpg) [480trip]
Jan.9, 2005 - 12350.5 - TIRE - RF:Flat. Put on spare.
Jan.15, 2005 - 12355.4 - TIRE - LF:35, LR:32, RF:34,RR:32. All>35
First is that each category potentially has a different set of fields from
others. Most would be just a text description, but others like the FUEL, I
would like to enter the Gallons, the Trip & the Price per gallon & have the
DB calculate the miles per gallon.
Another problem comes from for example the TIRE category where most of the
time I put in the pressure before adding air & then what I aired them up
to, as in that Jan.15 entry above, but when I buy new tires or have a flat
the format for that category will need to change.
Can this reasonably be done with a MySQL DB or should I write a C++
program to do it?
Thanks,
Bill
Comment