How can I select data with no duplicate the "First Letter" value? My table has a column named "title_raw" with data arrange follow "A, B, C, ..." I want my data display something like this
Select (title_raw no duplicate first letter) from SONGS
How can I select data with no duplicate the "First Letter" value? My table has a column named "title_raw" with data arrange follow "A, B, C, ..." I want my data display something like this
Select (title_raw no duplicate first letter) from SONGS
select substr(col, 0, 1) as Letter, count(primary_key) as Frequency
from table
group by Letter
Don't know if you can use column alias' in group by with SQLite. This will give you any first letters that are unique. Then use that as a subquery for:
select data
from table
where substr(data, 0, 1) IN (subquery)
That should work