select * from tabela where relacionamentos like '%.10643.%' and data like '%/1776' and (tipo=11 or tipo=1) order by data asc 19846-01/01/1776 5873-01/01/1776 6695-01/01/1776 26370-17/02/1776 25337-17/04/1776 1778-27/04/1776 BANO:611984651587351669561263706125337511778