我认为您应该使用UNION或UNION ALL
Use aggregation:
select itemtype, serialnumber, min(trantype) as trantype, changed,
min(orderform) as orderform, . . .
group by itemtype, serialnumber, changed;
I don't know what the logic is for trantype
, so I'm just guessing.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.