select * from tabela where relacionamentos like '%.10641.%' and data like '%/1776' and (tipo=11 or tipo=1) order by data asc 8236-01/01/1776 6695-01/01/1776 26370-17/02/1776 25337-17/04/1776 19848-05/05/1776 19837-23/08/1776 19838-27/10/1776 23415-21/12/1776 6675-23/12/1776 23590-24/12/1776 BANO:5182365166956126370612533761198486119837611983861234155166756123590