SELECT Name, LEN(Name)- LEN(REPLACE(Name ,' ','')) [CNT] FROM test5 order by CNT desc
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)