>select Numero from Client where exists (select 1 from Invoice >where Invoice.Numero=Client.NoInvoice AND Invoice.SecondCondition=True) >OR exists (select 1 from Inventory >where Inventory.Numero=Client.NoInventory AND Inventory.SecondCondition=True)>