Help with Arrays

Peter Haworth pete at lcsql.com
Tue Oct 15 16:04:55 CEST 2013


Or on SQL

SELECT name,count(name) FROM names GROUP BY name ORDER BY name

Pete
lcSQL Software
On Oct 14, 2013 9:25 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:

> Bill Vlahos <bvlahos at ...> writes:
>
> > How would I do this using an array?
>
> Well, Phil beat me to it, but I was going to suggest much the same thing.
> That repeat loop is what does the trick.
>
> Of course, the real-world answer probably depends on where the list of
> names
> is coming from... if it's in a mongodb database, just issue an aggregate
> command and get your results much faster with a one-liner than anything you
> could think of doing in a script.
>
> --
>  Mark Wieder
>  mwieder at ahsoftware.net
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list