Ini pendapatku. Apa pendapatmu?
SELECT * FROM tb_barang_temp WHERE kode_barcode IN (SELECT DISTINCT kode_barcode FROM tb_barang)