I have created an aggregate of fieldA
and fieldB
(fieldA_field_B) as new_field
. How to remove duplicate rows from the results based on that field alone? Using min()
it still comes up with he same results.
select concat(fieldA,'_',fieldB) as new_field,
field c,
field d
from tableA
where field ='false' and fieldy='true'
group by 2,3