-1
There is the possibility of executing a query searching by contract number, ordering by descending date and their respective service orders?
If so, can you give me an example for knowledge??
Query used:
SELECT * FROM field WHERE contrato LIKE '%$buscar%' ORDER BY Data,Num_OS DESC
Supposedly as you have would already do that. Where’s the problem?
– Jorge B.
I think you put
data desc, num_os
would solve... see this example in SQL Fiddle– Melissa
Gentlemen, settled... Thanks,.
– Expert Ortega
what solution? it would be good [besides helping] to help others
– Melissa
SELECT * FROM field WHERE contract LIKE '%$buscar%' ORDER BY Data,Num_os DESC or SELECT * FROM field WHERE contract LIKE '%$buscar%' ORDER BY Data DESC, Num_os
– Expert Ortega
Put an answer with the solution, avoid putting it in comment only.
– João Martins
how do I do that??
– Expert Ortega