select skuId from tbl_PRD_SKus s inner join tbl_PRD_Packaging pkg on pkg.linkId = s.skuId and pkg.linkType = 'SKU' and pkg.ownerId = s.ownerId and pkg.fsl_tablecode = s.fsl_tablecode and ( nullif( pkg.upc, '' ) is not null or len( pkg.scc14 ) = 14 ) where s.ownerId = and s.fsl_tablecode = and s.gs1_syncDate is not null #(_endTicks - _startTicks)# for #qmd_skusToProcess.recordCount# SKUs