i have a problem during count data use this query:
SELECT A.*,
COUNT( B.Serial_number ) AS Qty_insp,
CONCAT(ROUND(A.`Reject_qty`/ COUNT(B.Serial_number)*100, 2),'%') AS NG_Ratio
FROM oqc_defect A
LEFT JOIN inspection_report B ON A.Model = B.Model
AND A.Line = B.Line
GROUP BY A.Problem_date
i get result as encryption code for NG_Ratio like : 3532e...... why its happen, how to resolve this problem?
Edit
Reject_qty Qty_insp NG_Ratio
2 20 10%