select * from tabela where relacionamentos like '%.10648.%' and data like '%/1854' and (tipo=11 or tipo=1) order by data asc 7852-01/01/1854 18814-30/01/1854 10225-10/03/1854 10737-30/04/1854 10932-22/05/1854 12008-19/09/1854 BANO:51785261188146110225611073761109326112008