-1
I have the following code made by Amon:
select
id,
disponibilidade,
tipo
from
clientes
where
cliente = '$cliente'
AND status = '2'
AND (tipo <> '0' AND (disponibilidade <> '0' OR vanual <> '0' OR vtemporada <> '0'))
I need him to show how many customers have a EQUAL TYPE OF ZERO and not having at least one of the camps availability OR vanual OR vtemporada filled.
Thank you very much!
Exchange the
=
for<>
in diponibility, vnaul, vtemporada.– rray
Try it like this:
select id,disponibilidade,tipo from clientes where cliente = '$cliente' AND status = '2' AND tipo <> '0' AND (disponibilidade <> '0' OR vanual <> '0' OR vtemporada <> '0')
– ramaral
@ramaral gave no!
– Gladison Neuza Perosini
Ask the question: - The names and types of the columns used (id, availability, type, client, status, vanual and vtemporada). - Examples of lines that are supposed to show and not show and why.
– Edu
After all it is
tipo <> 0
ortipo = 0
?– ramaral