Considering this scheme
CREATE TABLE bra_ocorrencias (
estado varchar2(2),
genero varchar2(1),
ano number,
nome varchar2(30),
num_ocorrencia number
);
I need to make a query that returns me the most registered name for women in the state of SP, MG and RJ in the period from 2006 to 2012 . So I wrote this way
SELECT nome
FROM bra_ocorrencias
WHERE genero LIKE 'F'
AND estado LIKE 'SP' AND estado LIKE 'MG' AND estado LIKE 'RJ'
AND ano BETWEEN 2006 AND 2012
The query has no syntax errors, it returns me results but not according to the proposed logic, can anyone see the error in the relational logic of my syntax in relation to the query rule given above?