select * from tabela where relacionamentos like '%.1122.%' and data like '%/1765' and (tipo=11 or tipo=1) order by data asc 23401-01/01/1765 25221-01/01/1765 25441-01/01/1765 14224-17/01/1765 14225-26/01/1765 6516-28/02/1765 25617-16/03/1765 8274-22/07/1765 8281-10/11/1765 6458-24/11/1765 8277-30/11/1765 23574-09/12/1765 8279-12/12/1765 BANO:6123401612522161254416114224611422551651661256175182745182815164585182776123574518279