find second occurrence of character in string sql