select a.saleno as 单号,a.accdate as 会计日,a.wareqty as 数量,b.saleprice as 标价,a.netprice as 实价,e.paytype as 付款方式
from u_sale_c as a left join u_sale_m as c on a.saleno=c.saleno left join u_ware_q as b on a.wareid=b.wareid left join u_sale_pay as e on a.saleno=e.saleno
where a.accdate='2018-08-05 'and a.saleno in (180805100100165)
order by a.saleno,a.accdate当前查询同一单号有两条付款方式的信息,怎么样排除一个付款方式时 其他同一单号的不同付款方式也排除