SELECT COUNT(DISTINCT()) FROM mytable ¿LIMIT 5?
Good, 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
but I want to list me so descente
>answer:
6
5
4
3
2
1
Subject
Written By
Posted
SELECT COUNT(DISTINCT()) FROM mytable ¿LIMIT 5?
October 20, 2016 03:48PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.