SELECT COUNT(Po) from inspection_rec, INNER JOIN inspection_rec.Po = qc_record.Po where qc_record.Po LIKE '%ee4%' AND qc_record.Date LIKE '%2013-08-01%' AND inspection_recMoldRing = 'ปกติ 'Error Query [SELECT COUNT(Po) from inspection_rec, INNER JOIN inspection_rec.Po = qc_record.Po where qc_record.Po LIKE '%ee4%' AND qc_record.Date LIKE '%2013-08-01%' AND inspection_recMoldRing = 'ปกติ ']
SELECT COUNT(Po)
FROM inspection_rec, qc_record
WHERE inspection_rec.Po = qc_record.Po and qc_record.Po LIKE '%ee4%'
AND qc_record.Date LIKE '%2013-08-01%' AND inspection_recMoldRing = 'ปกติ'