I need to find the type of records stored in a column.
For example a column have these rows:
0000
0123
0123
0456
0465
0456
0789
What query I need to do to get this list:
0000
0123
0456
0789
The records I will dealing with contains thousands of records.
use
DISTINCT, what it does is to select only the unique values on the result.SQLFiddle Demo