Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
Issues with CHARINDEX when multiple instances exist.
Post Flair (click to view more posts with a particular flair)
Post Body

We are using MobiLink to communicate. I am trying to match a username with an ml_database record. The ml_database record looks like username (app version). In order to match, I compare the username to LEFT(username, CHARINDEX('(',username)-2).

This works unless the username has parentheses. I have instances where the username might look like "Joe Smith (2)" and the remote_id might look like "Joe Smith (2) (7.1.63.219)". Then my formula will be trying to match Joe Smith (2) and Joe Smith, and will fail.

If all of our versions looked like 7.1.63.219 we wouldn't have a problem, but sometimes they look like 2.1.24.1991, so I can't search for just "(7".

The only thing I can think of doing is reversing the orders o the letters in the remote_id, so I'd get ")912.36.1.7( )2( htimS eoJ". Then I could find "(", which would be 12. Then length - 12 is the value I want. But SQL doesn't seem to have a reversing function, which means I would have to write one.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
468,996
Link Karma
88,856
Comment Karma
368,068
Profile updated: 2 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 months ago