Question : SQL Query

Hello experts i am getting total and some statistic according to name from generating query, but if i am changing month from october to november than than its giving me double records instead of single and general total.
what i am missing in this query.
Code Snippet:
1:
2:
3:
4:
5:
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];

Answer : SQL Query

Are you refer the pan_no field with any other table?
Random Solutions  
 
programming4us programming4us