ti sbrighi prima a fare una semplice query del tipo:

select CAMPO1,CAMPO2 where CAMPO1 = A and CAMPO1 = C
UNION
select CAMPO1,CAMPO2
where CAMPO1 = B

ORDER BY CAMPO1