Use LIKE together with BETWEEN

-2

You can select data with between along with like , for example:

public.retornotoner.observacao like between 'A%' and 'Z%'

Or is there anything that might look like this?

Data example:

Vazio Mancha branca Residuo

public.retornotoner.observacao like between 'A%' and 'S%'

    
asked by anonymous 02.03.2018 / 21:03

1 answer

4

If I understood correctly the question, this should give you the result you are looking for:

WHERE LEFT(public.retornotoner.observacao, 1) BETWEEN 'A' AND 'S'

See working in Sqlfiddle

    
02.03.2018 / 21:19