ORDER BY items must appear in the select list if SELECT DISTINCT is specified January 26, 2023 by Tarik Try this: ORDER BY 1, 2 OR ORDER BY rsc.RadioServiceCodeId, rsc.RadioServiceCode + ' - ' + rsc.RadioService