Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
349 B
0
Indexable
Never
select bbs.warehouse_code, bbs.bin_code,plts.pallet_type from (
	SELECT DISTINCT bbs.warehouse_code, bbs.bin_code, bbs.pallet_number from bin_balances as bbs 
	where pallet_number = 'MHITA00096'
) bbs
inner join pallets plts on plts.pallet_number = bbs.pallet_number
GROUP by bbs.warehouse_code, bbs.bin_code
having COUNT(plts.pallet_type) = 1