I need to make a select in my database as below:
select
*
from tbl_frete f
join tbl_transportador t on f.idtransportador = t.idtransportador
join tbl_cliente c on f.idcliente = c.idcliente
join tbl_situacaofrete s on f.situacaofrete = s.idsituacao
where f.idcliente = 1
and f.situacaofrete = 0
and f.situacaofrete = 1
order by f.idfrete
but does not return anything, and when I do the select like this:
select
*
from tbl_frete f
join tbl_transportador t on f.idtransportador = t.idtransportador
join tbl_cliente c on f.idcliente = c.idcliente
join tbl_situacaofrete s on f.situacaofrete = s.idsituacao
where f.idcliente = 1
order by f.idfrete
returns the data but not as I wanted it, since it does not return freights with situation 1
How do I do this AND?