select * from tabela where relacionamentos like '%.1122.%' and data like '%/1770' and (tipo=11 or tipo=1) order by data asc 1753-01/01/1770 24710-01/01/1770 24157-01/01/1770 23552-06/01/1770 32974-08/01/1770 22252-09/02/1770 23419-14/02/1770 22253-06/06/1770 23542-01/08/1770 23408-14/08/1770 22263-19/08/1770 22238-17/09/1770 22254-20/09/1770 8276-28/11/1770 BANO:511753612471061241576123552613297461222526123419612225361235426123408612226361222386122254518276