Работает ли для вас следующее:
SELECT
MoldNo
, [Job No]
, DueDate
, Priority
FROM
(
SELECT
jodbom.fbompart as MoldNo,
jomast.fjobno as [Job No],
jomast.frel_dt as DueDate,
jomast.fschdprior as Priority,
ROW_NUMBER() OVER (PARTITION BY jodbom.fbompart ORDER BY jomast.fjobno, jomast.fschdprior) R
FROM jodbom
INNER JOIN jomast ON jodbom.fjobno = jomast.fjobno
INNER JOIN jodrtg ON jomast.fjobno = jodrtg.fjobno
INNER JOIN inmastx ON jodbom.fbompart = inmastx.fpartno
LEFT JOIN sorels ON jomast.fsono+jomast.fkey = sorels.fsono+sorels.finumber+sorels.frelease
WHERE (jomast.fstatus = 'RELEASED' OR
jomast.fstatus = 'OPEN') AND (jomast.flisapl = 1) AND (jodbom.fltooling = 1) AND
(jodrtg.fpro_id <> '09')
) Q
WHERE R = 1
Order by DueDate, Priority