SELECT [Truck_No], [Owner_Name], Sum([Motor_Freight]) AS MotorFreight, Sum([TDS]) AS TDS_Amt, Sum([Motor_Freight]) * '0.03' / 100 AS Edu_Cess, [PAN_NO]
FROM TDS_Detail
WHERE Date >= #10-1-09# And Date <= #10-31-09#
GROUP BY [Truck_No], [Owner_Name], [PAN_NO]
ORDER BY [Owner_Name], [Truck_No];
|