mysql - how to select distinct values from rows and columns both together -


this database table.

this database table values.there different topic names topic1 topic8. , want access distinct topic names these values. sql query ?

to clarify answers: select command union operator returns distinct values. it's not needed distinct keyword.

select union returns duplicate values too.


Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -

scikit learn - python sklearn KDTree with haversine distance -