ORDER BY

The DISTINCT Clause selects only one of each value

SELECT DISTINCT (category) FROM People

The SQL Statement above will retrieve

All category values once: SELECT DISTINCT (category)

From the table named People: FROM People



If this is the original table
People
FNameLNameCategory
JohnSmith1
AlJones2
FredAdkins2


Your recordset returned would be this:
People
Category
2
1



Come learn HTML or Classic ASP in Honolulu, Hawaii!

HOME | SQL Tutorials | XML Tutorials | OKIWEB | EMAIL ME | ASP Alliance