I am trying a left outer join like this
SELECT records.some_id FROM forms
LEFT OUTER JOIN records
ON forms.form_id = records.form_id
ORDER BY records.some_id
This will give me all the results from table:forms including some where records.form_id is not present. However, the returned result has unmatched rows in the beginning, how can I get them in last?
Current result:
NULL
NULL
5
20
100
Expected is:
5
20
100
NULL
NULL