I am making a query in MySql to return the quantity of requests that have not been delivered.
To see the ones that have been delivered I do:
$result = mysql_query("SELECT operacional FROM 'pedidos' WHERE 'status' = 'ENTREGA REALIZADA'");
However, there are some requests that the status is: DELIVERY HELD ON 10/20/2017 or even DELIVERY HELD ON 11/20/2017 - that is, the dates vary.
And besides, I need to pick up the ones that have not been delivered. How can I make to receive only those items that do not have this "DELIVERY" text? For this space is never left blank, there will always be something like EXIT LIST or ENTRY INTO UNITY , among others ...
There's something like:
$result = mysql_query("SELECT operacional FROM 'pedidos' WHERE 'status' != 'ENTREGA REALIZADA'");