This should be really easy. Believe me, I\'ve been researching this for hours. My query:
SELECT not_piece.pid, part.name AS \'Part Name\', SUM(qty_left) AS \
With your GROUP BY, try grouping by your primary key, pid:
SELECT not_piece.pid, part.name AS 'Part Name', SUM(qty_left) AS 'In Stock' FROM not_piece JOIN part ON not_piece.pid = part.pid GROUP BY part.pid;