on 07-29-2021 4:12 PM
Hi panther.williams,
if you have only one value for each key, you can use the max aggregation. In open sql, it's works also for characteristic fileds. But keep in mind, what's happens if you have two values for the key material and batch? In these case, you will ignore the lower value.
select
a~material
, a~batch
, max( b~value_1 ) as value_1
, max( b~value_2 ) as value_2
from
table a
left outer join on b
where b~material = a~material
and b~batch = a~batch
group by a~material, a~batch
<br>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.