select * from tabela where relacionamentos like '%.168.%' and data like '%/1977' and (tipo=11 or tipo=1) order by data asc 2877-01/01/1977 32901-01/01/1977 29065-06/01/1977 17864-25/04/1977 5355-01/09/1977 5356-26/10/1977 5354-05/12/1977 BANO:512877613290161290656117864515355515356515354