Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Reduce To Ranges aggregate function
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike King  
View profile  
 More options Oct 19 2006, 1:18 pm
Newsgroups: comp.databases.oracle.misc
From: "Mike King" <emai...@excite.com>
Date: Thu, 19 Oct 2006 13:18:25 -0400
Local: Thurs, Oct 19 2006 1:18 pm
Subject: Reduce To Ranges aggregate function
Has someone ready created an aggregate function that reduces a set of
numbers to a reduced form.  I'm writing some middleware software that needs
to know the IDs of some tuples but the query could return tens or thousands
of tuples.  I'm thinking if there were an aggregate function that would
reduce the network traffic.

select reduced_to_ranges(id)
from some_large_table
where some_field = some_value

 ID
----
1
2
3
4
5
11
12
45

Reduced form: 1-5,11-12,45


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.