我在oracle上查询,结果如下:
sportsman1 coach1 result_of_function
sportsman1 coach2 result_of_function
sportsman2 coach3 result_of_function
但是我需要像这样:
sportsman1
coach1 result_of_function
coach2 result_of_function
sportsman2
coach3 result_of_function
select a.fullname as Sportsman, t.fullname as Coach, date_raz(a.dateinclub, b.dateovertrain) as MONTHS
from athlet a, trainer t,black_couch b
where t.id=a.couch and b.couch=t.id and b.athlete=a.id;
我应该在查询中添加什么?