M
Miranda
hi guys,
i was wondering if there is a SQL operator to do something like this:
i've got a table of {equipment, cost, dateEffective}
so maybe: truck $400 12/03/2004
Truck $600 28/06/2004
I need to figure out how much to charge for the equipment. I have a date
that the piece of equipment was used and need to decided which price to
charge....is there anyway to find the nearest date? i've been trying to use
DATEDIFF....but i run into a problem when there are more than 2 entries for
that kind of equip...
any suggestions???
Thanks A LOT!!
miranda
i was wondering if there is a SQL operator to do something like this:
i've got a table of {equipment, cost, dateEffective}
so maybe: truck $400 12/03/2004
Truck $600 28/06/2004
I need to figure out how much to charge for the equipment. I have a date
that the piece of equipment was used and need to decided which price to
charge....is there anyway to find the nearest date? i've been trying to use
DATEDIFF....but i run into a problem when there are more than 2 entries for
that kind of equip...
any suggestions???
Thanks A LOT!!
miranda