![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/11/2016, 07:25
|
![Avatar de huesos52](http://static.forosdelweb.com/customavatars/avatar287966_22.gif) | Colaborador | | Fecha de Ingreso: febrero-2009 Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años Puntos: 360 | |
Respuesta: extraer el año de una fecha sin que se repita
Código SQL:
Ver originalSELECT DISTINCT EXTRACT(YEAR FROM campo_fecha) FROM tabla;
__________________ Without data, You are another person with an opinion.
W. Edwads Deming |