Given a statement like so : select mt.rank as repair,mb.rank as problem,reportid,repairdesc,problemdescFROM reports AS ft FULL JOIN CONTAINSTABLE(reports,repairdesc,'"full" or "center"') AS mt ON ft.reportid = mt.[KEY]JOIN CONTAINSTABLE(reports,problemdesc,'"full" or "center"') AS mb ON ft.reportid = mb.[KEY]order by repair desc,problem desc
I wish to order the returned records by the highest rank of repair or problemCurrently the order is as above, which can return : 144 128144 128NULL 192NULL 128NULL 128NULL 128
Id like it to return : NULL 192144 128144 128NULL 128NULL 128NULL 128
Then I can take an average of columns with 2 values.So, I guess the question is, how can I average 2 columns when one is potentially null and would give null answer? ....((mt.rank + mb.rank)/2)...