select * from tabela where relacionamentos like '%.10648.%' and data like '%/1866' and (tipo=11 or tipo=1) order by data asc 13238-20/01/1866 9927-23/01/1866 7174-01/04/1866 11374-15/07/1866 11547-03/08/1866 14156-13/08/1866 7636-18/08/1866 BANO:6113238519927517174611137461115476114156517636