MySQL - get all unique values of a column, check if has a specific value
- by gamers2000
First off - apologies for the poor title, I have no idea how to describe it in a one-liner.
I have a table - snippet is below.
mysql> select * from playlistfiles;
+-----------------------+--------------+-----------+
| FileName | PlaylistName | FileIndex |
+-----------------------+--------------+-----------+
| File1 …