select * from tabela where relacionamentos like '%.10641.%' and data like '%/1796' and (tipo=11 or tipo=1) order by data asc 26085-01/01/1796 5017-01/01/1796 6450-01/01/1796 9434-01/01/1796 27897-01/01/1796 24407-01/01/1796 BANO:612608551501751645051943461278976124407