delete from Products p1 where p1.Discontinued = .t. and ; P1.ProductId not in (SELECT DISTINCT PRODUCT.ProductId as ProdID ; FROM PRODUCT INNER JOIN ProdSize ; ON PRODUCT.ProductId = ProdSize.PRODUCT ; WHERE PRODUCT.discontinued = .T. ; AND (ProdSize.onorder != 0 ; or ProdSize.stock != 0)>>>I have a parent tale called products. One of the fields is discontinued.