So, I'm wondering if it's possible to count how many times a variable appears in table using SQL.
Example table:
ID TextColumn
1 foo
2 foo foo foo
3 bar
$var = "foo";
Return all columns with $var and count of $var order by highest to lowest.
Example result:
(1)ID=2,count=3 (2)ID=1,count=1
Is this possible to do using only SQL?
I asked a similiar question earlier but it wasn't clear, so if this one is also unclear please let me know.