SELECT DISTINCT X.id, X.cosub, Y.div
FROM X
LEFT OUTER JOIN Y ON Y.cosub = X.cosub
I am not 100% sure that you need DISTINCT (it would be nice to avoid it), it depends on whether the small table has duplicates. The text of the question, apparently, does not imply such duplicates, but then dups is given in the example ...
It should also be remembered that if table Y has several div values ββfor a given cosub (i.e., several records with conflicting div values ββfor a given cosub), the above query will display several rows in the result list, one for different ( but repeating the data from table X).
, LEFT OUTER JOIN, X ( , Y), , X cosub, Y. JOIN, EXCLUDING (.. X, cosub, Y)