select * from tabela where relacionamentos like '%.10641.%' and data like '%/1778' and (tipo=11 or tipo=1) order by data asc 6475-01/01/1778 31510-01/01/1778 27678-01/01/1778 23577-11/04/1778 8319-27/04/1778 19839-18/10/1778 19840-19/10/1778 BANO:51647561315106127678612357751831961198396119840