Select wfa9219,travel.travalcode
from pro_profile pro,wfa092,travelregister t,travel
where wfa092.wfa9202 = pro.object_id and travel.travalcode = t.travelcode
and wfa9213 =t.Member and pro.settle_type='02'
and wfa092.wfa9201 >= '20070625' and  wfa092.wfa9201 <='20070726'这样查询出来的数据有很多的travel.travalcode是想同的,我想让这些相同travalcode在java类中实现累加(相当与sql语句中的分组)