select * from tabela where relacionamentos like '%.10641.%' and data like '%/1866' and (tipo=11 or tipo=1) order by data asc 13561-01/01/1866 24526-01/01/1866 9459-01/01/1866 23362-01/01/1866 17295-01/01/1866 6775-01/01/1866 6683-01/01/1866 6650-01/01/1866 26119-01/01/1866 23522-01/01/1866 9167-01/01/1866 24078-01/01/1866 13650-20/01/1866 19656-11/02/1866 19754-11/02/1866 26206-01/04/1866 6020-10/04/1866 10625-16/04/1866 6431-01/09/1866 15870-01/11/1866 6711-04/11/1866 15867-06/11/1866 29257-21/11/1866 19299-26/11/1866 6271-01/12/1866 19301-17/12/1866 8466-30/12/1866 BANO:61135616124526519459612336261172955167755166835166506126119612352251916761240786113650611965661197546126206516020611062551643161158705167116115867612925761192995162716119301518466