[xquery-talk] longest sequence of monotonically increasingintegers

David Carlisle davidc at nag.co.uk
Mon Mar 6 09:24:15 PST 2006


> I think this solution depends on the order of the results of
> distinct-values()

so do I:-)
I nearly added an order-by clause to force the ordering to be increasing
but that would then lose the original order in the sequence. I'm not
clear if that would be OK, depends on the real problem description.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


More information about the talk mailing list