using: sql server
Here is what I am trying to accomplish. I have two tables one with 70 companies (company info, etc) and one table recording the incident numbers of tho
You need make to corrections:
RIGHT OUTER JOIN
to a LEFT JOIN
. OR TTS_INCIDENTS.TS_COMPANYID is null
to the WHERE clausemodifying the join is going to put the priority on all COMPANIES, instead of all INCIDENTS, as you have it now.
modifying the WHERE clause will allow Comapnies with NO INCIDENTS to also show-up in the list.