Hi there, I’m trying to figure out a clever way to compare the string values that I got stored in a SQLite table column. The target is to detect how many times a string value recurs, and so to compare the number in order to find the one that recurs the greater number of time.
What makes it complicated is that I do not use a defined list of values, and the comparison should be done - let me say - “in a dynamic way”.
In my following example my target would be to get " Sales Support Agent ".
Thank you Anthony for your contribution, I don’t know if it will solve my case but I can’t believe I googoled for a few hours finding nothing pointing to " GROUP BY ".
Thank you Alberto, I will pick a single result in any case, but I’d prefer the selection to be not Alphabetically Pre-established by default. Anyway this seems to be the most direct solution so far, even if it won’t allow me to manage the output result as you remarked in your comment. Great limitation.
Very very interesting reading. The combination of COUNT + GROP BY should led me directly to the expected goal. I will post my solution ASAP. Thank you Anthony!
Frankly the most of my handicap is due to the fact that I never be sure if a general topic like the one you posted here will works for Xojo or not (same image I used for my example in yours). I learned how the concept of Deprecation works and looking for Official Xojo Documentation only is quite limiting in most of cases.