select * from tabela where relacionamentos like '%.10648.%' and data like '%/1857' and (tipo=11 or tipo=1) order by data asc 17870-01/01/1857 8385-01/01/1857 27066-01/01/1857 13447-05/03/1857 11122-14/06/1857 6571-07/10/1857 12489-14/11/1857 BANO:61178705183856127066611344761111225165716112489