Is there a SQL command that will count the number of times a particular character occurs in a string? For example, I have an Org string - 123.ABC.abc.def.ghi.jkl.mno or 123.ABC.abc.def. I have a stored procedure that parses each tuple. Without getting into the complexity of the stored procedure, is there a SQL query I can run against OrgId that will count the number of periods [.]?
So 123.ABC.abc.def.ghi.jkl.mno, will return 6
and 123.ABC.abc.def returns 3
So 123.ABC.abc.def.ghi.jkl.mno, will return 6
and 123.ABC.abc.def returns 3