SELECT COUNT(DISTINCT()) FROM mytable ¿LIMIT 5?
Publicado por Davis (3 intervenciones) el 20/10/2016 23:53:03
Bueno, gracias por tomarse el tiempo para leer la consulta
thank you for taking the time to read the consultation
Table: mytable
id name
1 will
2 peter
3 peter
4 will
5 jhesus
6 jeshus
7 juan
8 robin
9 robin
10 francis
>SELECT COUNT(DISTINCT(name)) FROM mytable
> answer: 6
list in descending
lista en orden descendente
deseo listar a partir del query listar de forma descendente con un limit de 5
>answer:
6
5
4
3
2
Gracias
thank you for taking the time to read the consultation
Table: mytable
id name
1 will
2 peter
3 peter
4 will
5 jhesus
6 jeshus
7 juan
8 robin
9 robin
10 francis
>SELECT COUNT(DISTINCT(name)) FROM mytable
> answer: 6
list in descending
lista en orden descendente
deseo listar a partir del query listar de forma descendente con un limit de 5
>answer:
6
5
4
3
2
Gracias
Valora esta pregunta


0