I am trying to group by the column with same exact word or same first two words or same first three words
tblsample:
name
Brown sugar
Brown sugar Creme
Tiger zoo
Tiger
Blue red green
Blue red green yellow
Expected result:
name cntnme
Brown sugar 2
Tiger zoo 1
Tiger 1
Blue red green 2
I only can group by exact same words.
Select name, count(name) as cntnme from tblsample group by name