PARAMETERS
[Enter Start Date dd-mon-yyyy] DateTime,
[Enter End Date dd-mon-yyyy] DateTime;
SELECT
MAINTENANCES.period,
MAINTENANCES.vehicle_no,
MAINTENANCES.date,
IIf([TYPE]='C',[PRICE],0) AS CONTRACTOR_COST,
IIf([TYPE]='G',[PRICE],0) AS GARAGE_COST,
MAINTENANCES.material_cost,
MAINTENANCES.shop,
MAINTENANCES.hours,
MAINTENANCES.description,
0 AS SPARE_PARTS_COST,
0 AS TYRES_COST
FROM
MAINTENANCES
WHERE
INT(MAINTENANCES.added_on) BETWEEN
[Enter Start Date dd-mon-yyyy]
AND
[Enter End Date dd-mon-yyyy];
|