-3
For example, I have a table, with 2 columns, Name and Letter. The table Name, the respective names are inserted, and the table letter, only accepts 3 letters, A, B and C.
The same name can have all three letters. I wanted to select only when a name has only the letter A. If it has the letter A and also B, I don’t want it to appear in select. More or less like this. If anyone can help me thank!!
Or even
WHERE 'A' IN (letra_1, letra_2)
– Roberto de Campos
Sorry I explained wrong. I tried to rephrase the question but could not. Follow exactly what I want: For example, I have a table, with 2 columns, Name and Letter. The table Name, the respective names are inserted, and the table letter, only accepts 3 letters, A, B and C. The same name can have 3 letters. I wanted to select only when a name has only the letter A. If it has the letter A and also B, I don’t want it to appear in select. More or less like this. If anyone can help me thank!!
– Alinario Junior