I need to do a query that looks for a growing column and in the same query another column in descending for example in the result below:
item | quantidade
carro | 400
carro | 340
dado | 240
disco | 180
disco | 120
faca | 89
faca | 59
I would like to see the result follow my query below:
SELECT * FROM qe.etiquetas_recortadas_aoi ignore index(PRIMARY)
where line = 'AOI-1'
and brand = 'NBK'
and material_name_crop <> 'Borrada_1'
order by qty_pass desc, material_name asc;