图片中我是以料号,供应商,日期排序的,我想把连续价格在日期连续,只显示日期最大的一笔,请问该怎么做啊,
select
a.approved_by,
a.eplant_id,
e.itemno,
e.descrip,
e.rev,
b.unit_price,
c.company,
d.open_date
from iqms.po a,
iqms.po_detail b,
iqms.vendor c,
iqms.wf_header d,
iqms.arinvt e
where a.id=b.po_id
and a.vendor_id=c.id
and d.source_id=a.id
and e.id=b.arinvt_id
order by itemno,rev,company,open_date
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货