2
I have a table with values, where each value is according to weight (Kg).
Up to 3kg = R$20.00
Up to 5kg = R$25.00
Up to 10kg = R$28.00
SELECT estado, kg, valorCap, valorExcedCap, valorAloremCap, prazoCap
FROM transportadoras_valores
WHERE id_transportadora = '1' && estado = 'AL' && kg = '4'
In this example above, I need to return the value of 5kg.
I have an online example:
That, LIMIT 1 was missing
– Tiago
And the sign of >=
– Tiago
@Tiago and ORDER BY.
– Sergio
Thank you so much again
– Tiago