select * from tabela where relacionamentos like '%.10641.%' and data like '%/1659' and (tipo=11 or tipo=1) order by data asc 26211-01/01/1659 21301-01/01/1659 22333-01/01/1659 21293-14/07/1659 26642-14/07/1659 21930-02/11/1659 BANO:612621161213016122333612129361266426121930