Is it possible to execute a query by searching for the contract number, sorting by decreasing date and their respective work orders? If yes, can you give me an example for knowledge ??
Query used:
SELECT * FROM field WHERE contrato LIKE '%$buscar%' ORDER BY Data,Num_OS DESC