How do i query an item assembly item and also join...
# suiteql
j
How do i query an item assembly item and also join to the bill of material revesion to get the items that make up that item?
c
Copy code
select i1.itemid, brc.bomquantity, i.id
from item i
    inner join bomAssembly ba on ba.assembly = i.id
	inner join bomRevision br on br.billofmaterials = ba.billofmaterials
	inner join BomRevisionComponent brc on brc.bomRevision = br.id
	inner join item i1 on i1.id = brc.item
where i.id in ((?))
	and masterdefault = 'T'
j
thank you that worked much appreciated.
👍🏻 1