But I did end up figuring out a SS solution using the min function (in non-SQL-standard sort of fashion).
SELECT *\nFROM\n drug d\n LEFT OUTER JOIN formulary f ON (f.drugid = d.drugid)\nWHERE\n ((f.formularyid IS NULL) OR\n (f.formularyid = (\n SELECT MIN(forumularyid)\n FROM formulary x\n WHERE (x.drugid = d.drugid))))