SELECT ALL extract(day from datanasc) as dia, NOME, DATANASC
FROM "table.DB"
where (extract(month FROM DATANASC)=:MES)
order by dia