select Count(A.ID) from ( select SP2.ID from StorePrices2 SP2 join StorePrices SP on SP.ID = SP2.Parent_ID where SP.StoreCard_ID = :AStoreCard_ID and SP2.TieredPrice = 'A' UNION ALL select SP2.ID from ActionStorePrices2 SP2 join ActionStorePrices SP on SP.ID = SP2.Parent_ID where SP.StoreCard_ID = :AStoreCard_ID and SP2.TieredPrice = 'A' ) A
Generated by ABRA Software a.s. 27.10.2021 16:34:11