select * from tabela where relacionamentos like '%.10641.%' and data like '%/1770' and (tipo=11 or tipo=1) order by data asc 23521-01/01/1770 25754-01/01/1770 25427-01/01/1770 28256-01/01/1770 6470-01/01/1770 9692-01/01/1770 28451-01/01/1770 6739-01/01/1770 6605-01/01/1770 24157-01/01/1770 23552-06/01/1770 32974-08/01/1770 1754-06/02/1770 22252-09/02/1770 23419-14/02/1770 26532-16/03/1770 22253-06/06/1770 23408-14/08/1770 22254-20/09/1770 9292-05/11/1770 8276-28/11/1770 24310-17/12/1770 BANO:612352161257546125427612825651647051969261284515167395166056124157612355261329745117546122252612341961265326122253612340861222545192925182766124310