You can use DISTINCT to achieve it.
Syntax:
SELECT DISTINCT column_name FROM table_name;
Based on above syntax, your query should be
SELECT DISTINCT CLASS FROM 'table_name'
solved Retrieve table values without retrieving duplicate values [closed]