I have tried this query:
SELECT `wh_pengeluaran`.`Nomor Dokumen`, `wh_pengeluaran`.`Created
Date`, `inventory transactions`.`Transaction Item`,(SELECT Quantity
FROM `inventory transactions` WHERE `inventory transactions`.`Proforma
Invoice` > 0) as qtykeluar
FROM `inventory transactions` JOIN `wh_pengeluaran`
WHERE `inventory transactions`.`Transaction Item` = 1
But MySQL said: Documentation
1242 - Subquery returns more than 1 row
Anyone help, please.. What's wrong with the syntax? I've no idea Thank you! :)