Hi
an outer join would help you i think. If you try this (at least for Oracle SQL)
select company.name, employee.name
from company, employee
where employee.company_id (+) = company.id
order by employee.name asc
Note: The companies that has no employees will be placed last if im not misstaken. The order by places NULL values last.
You could use also the NVL command to present the null values as a single blank for example, and then it would sort different.
Maybe something like this:
select company.name as Company_Name, nvl(employee.name, ' ') as Employee_Name
from company, employee
where employee.company_id (+) = company.id
order by Employee_Name asc