select * from tabela where relacionamentos like '%.787.%' and data like '%/1977' and (tipo=11 or tipo=1) order by data asc 7449-01/01/1977 14388-01/04/1977 14389-14/04/1977 15624-03/06/1977 14394-11/10/1977 8057-19/12/1977 BANO:5174496114388611438961156246114394518057