select * from tabela where relacionamentos like '%.10641.%' and data like '%/1693' and (tipo=11 or tipo=1) order by data asc 1497-01/01/1693 1496-01/01/1693 1499-01/01/1693 27041-01/01/1693 23198-14/01/1693 22478-25/01/1693 21710-29/03/1693 27615-07/04/1693 BANO:51149751149651149961270416123198612247861217106127615