![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/08/2010, 07:08
|
![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: Contar un DISTINCT... Quita el group by.
Código SQL:
Ver originalSELECT COUNT(DISTINCT(codigos)) FROM tabla;
saludos
__________________ Without data, You are another person with an opinion.
W. Edwads Deming |