here is my return of record, wo_nbr is my parent and wo_nbr_1 is the children, i need to look at the data under wo_nbr_1 and below that , until its at the lost level
select a.wo_nbr,a.lot_nbr ,SUBSTR(a.lot_nbr,2) wo_nbr1,a.qty, max (a.date_add)
from wod_table a
--left join wod_table b on SUBSTR(a.lot_nbr,2) = b.wo_nbr
where a.wo_nbr = '479598'
and a. type = '01' and a.lot_nbr like'W%' and a.qty > 0
group by a.wo_nbr,a.lot_nbr ,a.qty--,b.wo_nbr
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.