select * from tabela where relacionamentos like '%.10641.%' and data like '%/1777' and (tipo=11 or tipo=1) order by data asc 9081-01/01/1777 28022-01/01/1777 6359-01/01/1777 23591-10/01/1777 9364-28/04/1777 23572-10/08/1777 9694-12/11/1777 BANO:519081612802251635961235915193646123572519694