Two samples quickly came up... grep is my friend... :cool:
AND ISNULL([p].[stocktypeid], -1) IN (-1, 3, 10) --Only consider parts which are NULL/B/P Stocking Type
WHERE ISNULL([utoolstatusid], -1) IN (-1, 1, 2) --Only consider parts which are No Tool / Not Quoted / Out forSo first is...